From 6ac2a402d4dc7363997399dc094bc7c0011c4f4d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 8 Sep 2021 16:00:53 +0200 Subject: [PATCH] dnsdist: Stop raising the number of TCP workers to the number of TCP binds --- pdns/dnsdist.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 7fc5aaf8f8..96025a4d17 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -2542,7 +2542,7 @@ int main(int argc, char** argv) } if (!g_maxTCPClientThreads) { - g_maxTCPClientThreads = std::max(tcpBindsCount, static_cast(10)); + g_maxTCPClientThreads = static_cast(10); } else if (*g_maxTCPClientThreads == 0 && tcpBindsCount > 0) { warnlog("setMaxTCPClientThreads() has been set to 0 while we are accepting TCP connections, raising to 1"); -- 2.47.2