From 8e8c65910c9d26286568e77f764c7f732caea017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Ondr=C3=A1=C4=8Dek?= Date: Mon, 9 Dec 2024 16:37:50 +0100 Subject: [PATCH] daemon/defer: increase request timeout to 1s --- daemon/defer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/defer.c b/daemon/defer.c index 91c718bf3..2d5d52bff 100644 --- a/daemon/defer.c +++ b/daemon/defer.c @@ -40,7 +40,7 @@ // DoH: 2.5 ms // uncached resolving: ~10 ms or more -#define REQ_TIMEOUT 50000000 // ns (THREAD_CPUTIME), older deferred queries are dropped +#define REQ_TIMEOUT 1000000000 // 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