From: Remi Gacogne Date: Wed, 8 Sep 2021 14:00:53 +0000 (+0200) Subject: dnsdist: Stop raising the number of TCP workers to the number of TCP binds X-Git-Tag: dnsdist-1.7.0-alpha1~18^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ac2a402d4dc7363997399dc094bc7c0011c4f4d;p=thirdparty%2Fpdns.git dnsdist: Stop raising the number of TCP workers to the number of TCP binds --- 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");