From 815198586229f980a52fb077f1f404633f282e43 Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 15 Jun 2025 00:33:02 +0200 Subject: Discard the request when there's no timeout func --- src/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/proto.c') 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); -- cgit v1.2.3