]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/defer: increase deferred request timeout docs-develop-defe-x6j6qe/deployments/5815
authorLukáš Ondráček <lukas.ondracek@nic.cz>
Mon, 2 Dec 2024 11:44:06 +0000 (12:44 +0100)
committerLukáš Ondráček <lukas.ondracek@nic.cz>
Mon, 2 Dec 2024 11:44:34 +0000 (12:44 +0100)
daemon/defer.c

index 32e30cb588eb321f44c06e8f7321ddd4b3be0abd..0f59ba62a82100585585d377478a0f2aa16eeb84 100644 (file)
@@ -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