From: Charles-Henri Bruyand Date: Wed, 16 Aug 2023 15:28:23 +0000 (+0200) Subject: dnsdist: make query channel receiving part blocking to avoid unnecessary CPU consumption X-Git-Tag: rec-5.0.0-alpha1~52^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F13147%2Fhead;p=thirdparty%2Fpdns.git dnsdist: make query channel receiving part blocking to avoid unnecessary CPU consumption --- diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index c8931c5cdb..2a24dabebc 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -175,7 +175,7 @@ struct DOHServerConfig { #ifndef USE_SINGLE_ACCEPTOR_THREAD { - auto [sender, receiver] = pdns::channel::createObjectQueue(true, true, internalPipeBufferSize); + auto [sender, receiver] = pdns::channel::createObjectQueue(true, false, internalPipeBufferSize); d_querySender = std::move(sender); d_queryReceiver = std::move(receiver); }