]> 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:03:17 +0000 (14:03 -0500)
committerCurtis Blackburn <ckb@isc.org>
Mon, 3 Jun 2013 19:03:17 +0000 (14:03 -0500)
CHANGES
bin/named/config.c
bin/named/server.c
doc/arm/Bv9ARM-book.xml

diff --git a/CHANGES b/CHANGES
index f466e42de5adc79f66c9d36073b9630bfd0cd6b3..2e7c25da41486913722e23951a35bd27be41ad8e 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]
 
 3578.  [bug]           'rndc -c file' now fails if 'file' does not exist.
index 1324c56f413e1584ed3906adc0acc7b5aa5d989e..6e2efa9f75d53fb388422a0ef7182232f4615e4f 100644 (file)
@@ -87,7 +87,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 d52688ce9ec6b200bbf219abe13db36e1a249375..9a9ac2bd998e0b765e05b25341712a89208e6c9f 100644 (file)
@@ -3344,8 +3344,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 39d515f87f5e99dd314c1bb8b56efdf529c8b417..e2d887d5ffe16f4e2ad5a1d1bd3161ca101e9efb 100644 (file)
@@ -7421,14 +7421,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>