]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Move default incoming.max_tcp_client to 1024 14838/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Nov 2024 14:32:25 +0000 (15:32 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 6 Nov 2024 14:32:25 +0000 (15:32 +0100)
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

index d1603ad0e00b9ac82308c00be81da83cf2cd5762..10feb41e0213e05b851eb25e46519849c2a77315 100644 (file)
@@ -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.
  ''',
     },
     {