]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Stop raising the number of TCP workers to the number of TCP binds
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 8 Sep 2021 14:00:53 +0000 (16:00 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Sep 2021 07:23:55 +0000 (09:23 +0200)
pdns/dnsdist.cc

index 7fc5aaf8f82599c5665d8a54f3b3b224bc4d62d1..96025a4d176aad5147ab21f349eccbfd51787de7 100644 (file)
@@ -2542,7 +2542,7 @@ int main(int argc, char** argv)
     }
 
     if (!g_maxTCPClientThreads) {
-      g_maxTCPClientThreads = std::max(tcpBindsCount, static_cast<size_t>(10));
+      g_maxTCPClientThreads = static_cast<size_t>(10);
     }
     else if (*g_maxTCPClientThreads == 0 && tcpBindsCount > 0) {
       warnlog("setMaxTCPClientThreads() has been set to 0 while we are accepting TCP connections, raising to 1");