summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesper Jensen <jesper@jnsn.dev>2025-06-15 00:33:02 +0200
committerJesper Jensen <jesper@jnsn.dev>2025-06-15 00:33:02 +0200
commit815198586229f980a52fb077f1f404633f282e43 (patch)
tree6164f26fc1e3dbe002964eaea6459b3863bf8214
parentf0ade23a3d8a42ba7f48ba2a92f36ea0d88542e4 (diff)
Discard the request when there's no timeout func
-rw-r--r--src/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto.c b/src/proto.c
index 09a9e26..0f5669a 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -881,7 +881,7 @@ int proto_run(struct dht* dht, char* buff, size_t recv_len, struct sockaddr_in*
if(difftime(now, dht->requestdata[i].timeout) < 0)
continue;
- int rc = PROTO_EDISC;
+ int rc = 0;
if(dht->requestdata[i].timeout_fun != NULL) {
prom_counter_inc(retries, NULL);
rc = dht->requestdata[i].timeout_fun(dht, &dht->self, now, &dht->requestdata[i].cont, &msgbuff);