Skip to content

Commit

Permalink
daemon/defer: increase deferred request timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Ondráček committed Dec 2, 2024
1 parent 6fc8a3e commit 6c9d047
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 @@ -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
Expand Down

0 comments on commit 6c9d047

Please sign in to comment.