From 4956f9af95ef3e0b317866ea68a00d3320893077 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ondr=C3=A1=C4=8Dek?= Date: Mon, 10 Mar 2025 12:23:24 +0100 Subject: [PATCH] daemon/defer: improve doc --- doc/user/config-defer.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/user/config-defer.rst b/doc/user/config-defer.rst index 41bb4e373..43c2cefbc 100644 --- a/doc/user/config-defer.rst +++ b/doc/user/config-defer.rst @@ -11,6 +11,7 @@ If there is not enough time to process all the requests, the lowest priority one It also allows setting a hard timeout on a continuous computation on a single request. The time measurements are taken into account only for TCP-based queries (including DoT and DoH), +except for hard timeout which is applied for both, as the source address of plain UDP can be forged. We aim to spend half of the time for UDP without prioritization and half of the time for non-UDP with prioritization, @@ -60,7 +61,7 @@ The limits can be adjusted for different packet origins using :option:`price-fac It is based on scheduling a SIGALRM to be delivered after the timeout (or up to 1s later), which then interrupts the computation. - After the interrupt the priority of the request's origin is decreased according to the duration, + After interrupting the priority of the request's origin is decreased according to the duration (if non-UDP), the kresd process is terminated (dropping all pending, but probably already timeouted, requests) and started again by manager. To keep the data with measurements and priorities alive during restart, -- 2.47.2