]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3581. [bug] Changed the tcp-listen-queue default to 10. [RT #33029]
authorCurtis Blackburn <ckb@isc.org>
Mon, 3 Jun 2013 19:00:03 +0000 (14:00 -0500)
committerCurtis Blackburn <ckb@isc.org>
Mon, 3 Jun 2013 19:00:03 +0000 (14:00 -0500)
CHANGES
bin/named/config.c
bin/named/server.c
doc/arm/Bv9ARM-book.xml

diff --git a/CHANGES b/CHANGES
index 0079de87e6ae61580f376d852c81c61877f59390..87977827e190577e235e27838d08046e9a682e29 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3581.  [bug]           Changed the tcp-listen-queue default to 10. [RT #33029]
+
 3580.  [bug]           Addressed a possible race in acache.c [RT #33602]
 
 3579.  [maint]         Updates to PKCS#11 openssl patches, supporting
index 93cbd460f64a740a6abf71cb0dab16b984543d27..da06e4b66d47cc6700a562a322724eddc5d0d193 100644 (file)
@@ -98,7 +98,7 @@ options {\n\
        statistics-file \"named.stats\";\n\
        statistics-interval 60;\n\
        tcp-clients 100;\n\
-       tcp-listen-queue 3;\n\
+       tcp-listen-queue 10;\n\
 #      tkey-dhkey <none>\n\
 #      tkey-gssapi-credential <none>\n\
 #      tkey-domain <none>\n\
index 98662e8a07bc0d461f0c7df824fdf0b093733a6d..2a705fba667ea681de3fffe4d98dff76f0a76360 100644 (file)
@@ -5271,8 +5271,8 @@ load_configuration(const char *filename, ns_server_t *server,
        result = ns_config_get(maps, "tcp-listen-queue", &obj);
        INSIST(result == ISC_R_SUCCESS);
        ns_g_listen = cfg_obj_asuint32(obj);
-       if (ns_g_listen < 3)
-               ns_g_listen = 3;
+       if ((ns_g_listen > 0) && (ns_g_listen < 10))
+               ns_g_listen = 10;
 
        /*
         * Configure the interface manager according to the "listen-on"
index c6d03a21b3604650d8dd718cc975410165c766c0..0213beb150cd73cfe67405c0090fe889b5a8200c 100644 (file)
@@ -8576,14 +8576,15 @@ avoid-v6-udp-ports { 40000; range 50000 60000; };
               <term><command>tcp-listen-queue</command></term>
               <listitem>
                 <para>
-                  The listen queue depth.  The default and minimum is 3.
+                  The listen queue depth.  The default and minimum is 10.
                   If the kernel supports the accept filter "dataready" this
                   also controls how
                   many TCP connections that will be queued in kernel space
                   waiting for
-                  some data before being passed to accept.  Values less than 3
-                  will be
-                  silently raised.
+                  some data before being passed to accept.  Nonzero values
+                  less than 10 will be silently raised. A value of 0 may also
+                  be used; on most platforms this sets the listen queue 
+                  length to a system-defined default value.
                 </para>
               </listitem>
             </varlistentry>