Skip to content

Commit

Permalink
daemon/defer: increase request timeout to 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Ondráček authored and vcunat committed Dec 11, 2024
1 parent 4f79b7c commit 8e8c659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/defer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e8c659

Please sign in to comment.