]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: make query channel receiving part blocking to avoid unnecessary CPU consumption 13147/head
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 16 Aug 2023 15:28:23 +0000 (17:28 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Wed, 16 Aug 2023 15:28:23 +0000 (17:28 +0200)
pdns/dnsdistdist/doh.cc

index c8931c5cdb13534dac4d4f92506579d4e3dc627a..2a24dabebca58c4c07c62157fea1495185665452 100644 (file)
@@ -175,7 +175,7 @@ struct DOHServerConfig
   {
 #ifndef USE_SINGLE_ACCEPTOR_THREAD
     {
-      auto [sender, receiver] = pdns::channel::createObjectQueue<DOHUnit, void(*)(DOHUnit*)>(true, true, internalPipeBufferSize);
+      auto [sender, receiver] = pdns::channel::createObjectQueue<DOHUnit, void(*)(DOHUnit*)>(true, false, internalPipeBufferSize);
       d_querySender = std::move(sender);
       d_queryReceiver = std::move(receiver);
     }