From: Remi Gacogne Date: Mon, 1 Sep 2025 10:22:06 +0000 (+0200) Subject: dnsdist: Refresh configuration after `recv` which may have blocked for a long time X-Git-Tag: dnsdist-2.0.1^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6131c9689bc12e6a0025263e3c8ee963978cca9c;p=thirdparty%2Fpdns.git dnsdist: Refresh configuration after `recv` which may have blocked for a long time Signed-off-by: Remi Gacogne (cherry picked from commit 4f70dcdd60826448b4bcad5a44335de0c45dbeea) --- diff --git a/pdns/dnsdistdist/dnsdist.cc b/pdns/dnsdistdist/dnsdist.cc index 6c0cc94be..e75ac1a7c 100644 --- a/pdns/dnsdistdist/dnsdist.cc +++ b/pdns/dnsdistdist/dnsdist.cc @@ -792,8 +792,6 @@ void responderThread(std::shared_ptr dss) break; } - dnsdist::configuration::refreshLocalRuntimeConfiguration(); - for (const auto& sockDesc : sockets) { /* allocate one more byte so we can detect truncation */ // NOLINTNEXTLINE(bugprone-use-after-move): resizing a vector has no preconditions so it is valid to do so after moving it @@ -822,6 +820,7 @@ void responderThread(std::shared_ptr dss) continue; } + dnsdist::configuration::refreshLocalRuntimeConfiguration(); if (processResponderPacket(dss, response, std::move(*ids)) && ids->isXSK() && ids->cs->xskInfoResponder) { #ifdef HAVE_XSK auto& xskInfo = ids->cs->xskInfoResponder;