From 570181d2004e1d07a8a4e946f352d619a5f8895f Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Wed, 2 Jul 2025 20:50:53 +0200 Subject: Rework when a lookup is considered complete Keep track of outstanding requests sent as part of a lookup and rely on those individual request timeouts to signal the end of the lookup as a whole. This also makes sure we have the lookup around for the entire duration of all downstream requests. --- src/proto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto.h') diff --git a/src/proto.h b/src/proto.h index 8b65d3d..638c1ec 100644 --- a/src/proto.h +++ b/src/proto.h @@ -35,7 +35,7 @@ struct lookup { struct nodeid closest[8]; struct addr closest_addr[8]; - time_t timeout; + uint64_t outstanding; }; void token_create(struct tokens* tokens, time_t now, struct addr* remote, char* token); -- cgit v1.2.3