From 6c9d0474b78962aa09225b9e4fc48db35b5af43b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Ondr=C3=A1=C4=8Dek?= Date: Mon, 2 Dec 2024 12:44:06 +0100 Subject: [PATCH] daemon/defer: increase deferred request timeout --- daemon/defer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/defer.c b/daemon/defer.c index 32e30cb58..0f59ba62a 100644 --- a/daemon/defer.c +++ b/daemon/defer.c @@ -52,7 +52,7 @@ // half-life 5s, BASE_PRICE /= 2.5 -> for 4 cpus 1.75 ms fits below 2^4; // still not enough for home routers -> TODO make something configurable, maybe the BASE_PRICE multiplier -#define REQ_TIMEOUT 5000000 // ns (THREAD_CPUTIME), older deferred queries are dropped +#define REQ_TIMEOUT 20000000 // ns (THREAD_CPUTIME), older deferred queries are dropped #define IDLE_TIMEOUT 1000000 // ns (THREAD_CPUTIME); if exceeded, continue processing after next poll phase #define PHASE_UDP_TIMEOUT 400000 // ns (THREAD_CPUTIME); switch between udp, non-udp phases #define PHASE_NON_UDP_TIMEOUT 400000 // ns (THREAD_CPUTIME); after timeout or emptying queue