From aa442b3367eb471ab3597bda12e9e46e552f2edb Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Wed, 6 Nov 2024 15:32:25 +0100 Subject: [PATCH] Move default incoming.max_tcp_client to 1024 Compared to the default 3 (2 udp + 1 tcp worker) * 2048 (max mthreads) = 6144 fd's needed if all mthreads are busy, 1024 does not sound too great of a burden with respect to fd usage. --- pdns/recursordist/settings/table.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pdns/recursordist/settings/table.py b/pdns/recursordist/settings/table.py index d1603ad0e0..10feb41e02 100644 --- a/pdns/recursordist/settings/table.py +++ b/pdns/recursordist/settings/table.py @@ -1656,11 +1656,12 @@ If :ref:`setting-qname-minimization` is enabled, the fallback code in case of a 'name' : 'max_tcp_clients', 'section' : 'incoming', 'type' : LType.Uint64, - 'default' : '128', + 'default' : '1024', 'help' : 'Maximum number of simultaneous TCP clients', 'doc' : ''' Maximum number of simultaneous incoming TCP connections allowed. ''', + 'versionchanged': ('5.2.0', 'Before 5.2.0 the default was 128.'), }, { 'name' : 'max_tcp_per_client', @@ -1670,7 +1671,7 @@ Maximum number of simultaneous incoming TCP connections allowed. 'help' : 'If set, maximum number of TCP sessions per client (IP address)', 'doc' : ''' Maximum number of simultaneous incoming TCP connections allowed per client (remote IP address). - 0 means unlimited. +0 means unlimited. ''', }, { -- 2.47.2