]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
merge rt4112
authorMichael Graff <mgraff@isc.org>
Tue, 12 Nov 2002 23:38:12 +0000 (23:38 +0000)
committerMichael Graff <mgraff@isc.org>
Tue, 12 Nov 2002 23:38:12 +0000 (23:38 +0000)
bin/named/config.c
bin/named/include/named/globals.h
bin/named/interfacemgr.c
bin/named/server.c
doc/arm/Bv9ARM-book.xml
doc/private/branches
lib/isccfg/namedconf.c

index 53daa9465f4a4aa13277d1d794abfe4283948e41..bf9bb5a6e8f0fc4189a82a651ab552be321c27ed 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: config.c,v 1.32 2002/09/10 04:45:52 marka Exp $ */
+/* $Id: config.c,v 1.33 2002/11/12 23:38:10 explorer Exp $ */
 
 #include <config.h>
 
@@ -80,6 +80,7 @@ options {\n\
        statistics-file \"named.stats\";\n\
        statistics-interval 60;\n\
        tcp-clients 100;\n\
+       tcp-listen-queue 3;\n\
 #      tkey-dhkey <none>\n\
 #      tkey-gssapi-credential <none>\n\
 #      tkey-domain <none>\n\
index 1080588720d48c4fb3a3c0ab82dcd8ae265581b5..87f9521d178471f48a89bf62f2e6ca06dd17f62d 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: globals.h,v 1.59 2001/08/08 20:37:31 gson Exp $ */
+/* $Id: globals.h,v 1.60 2002/11/12 23:38:11 explorer Exp $ */
 
 #ifndef NAMED_GLOBALS_H
 #define NAMED_GLOBALS_H 1
@@ -107,6 +107,8 @@ EXTERN const char *         lwresd_g_defaultpidfile INIT(NS_LOCALSTATEDIR
                                                            "/run/lwresd.pid");
 EXTERN const char *            ns_g_username           INIT(NULL);
 
+EXTERN int                     ns_g_listen             INIT(3);
+
 #undef EXTERN
 #undef INIT
 
index b02420b4a7382dc273336102e6a3617129295403..d83cb31028e65b4cc1b2ea04ebe96e636baaa3a2 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: interfacemgr.c,v 1.74 2002/10/31 04:08:22 marka Exp $ */
+/* $Id: interfacemgr.c,v 1.75 2002/11/12 23:38:10 explorer Exp $ */
 
 #include <config.h>
 
@@ -304,7 +304,7 @@ ns_interface_accepttcp(ns_interface_t *ifp) {
                                 isc_result_totext(result));
                goto tcp_bind_failure;
        }
-       result = isc_socket_listen(ifp->tcpsocket, 3);
+       result = isc_socket_listen(ifp->tcpsocket, ns_g_listen);
        if (result != ISC_R_SUCCESS) {
                isc_log_write(IFMGR_COMMON_LOGARGS, ISC_LOG_ERROR,
                                 "listening on TCP socket: %s",
index 887df5d397d444b54e14e6a401b80ffe85b21c25..ee0021d821a780b43a17043667d384d89eea8016 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: server.c,v 1.389 2002/09/11 04:32:29 marka Exp $ */
+/* $Id: server.c,v 1.390 2002/11/12 23:38:11 explorer Exp $ */
 
 #include <config.h>
 
@@ -1787,6 +1787,16 @@ load_configuration(const char *filename, ns_server_t *server,
        else
                CHECKM(ns_config_getport(config, &listen_port), "port");
 
+       /*
+        * Find the listen queue depth.
+        */
+       obj = NULL;
+       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;
+
        /*
         * Configure the interface manager according to the "listen-on"
         * statement.
index 1ddfcbd112e2ffb57ec483fab13a0c0741351409..7921e849269bce1afa6f5b6e9b0edd8554762bff 100644 (file)
@@ -2,7 +2,7 @@
 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
                "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd">
 
-<!-- File: $Id: Bv9ARM-book.xml,v 1.208 2002/11/11 00:18:22 marka Exp $ -->
+<!-- File: $Id: Bv9ARM-book.xml,v 1.209 2002/11/12 23:38:11 explorer Exp $ -->
 
 <book>
 <title>BIND 9 Administrator Reference Manual</title>
@@ -2884,6 +2884,7 @@ statement in the <filename>named.conf</filename> file:</para>
     <optional> recursive-clients <replaceable>number</replaceable>; </optional>
     <optional> serial-query-rate <replaceable>number</replaceable>; </optional>
     <optional> serial-queries <replaceable>number</replaceable>; </optional>
+    <optional> tcp-listen-queue <replaceable>number</replaceable>; </optional>
     <optional> transfer-format <replaceable>( one-answer | many-answers )</replaceable>; </optional>
     <optional> transfers-in  <replaceable>number</replaceable>; </optional>
     <optional> transfers-out <replaceable>number</replaceable>; </optional>
@@ -3852,6 +3853,15 @@ records are purged from the cache only when their TTLs expire.
 </para>
 </listitem></varlistentry>
 
+<varlistentry><term><command>tcp-listen-queue</command></term>
+<listitem><para>The listen queue depth.  The default and minimum is 3.
+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.
+</para>
+</listitem></varlistentry>
+
 </variablelist>
 
 </sect3>
index c14f8201450879d8abfa6f08bba8025d8f1a5587..3d5374b4d70526434e51f195a47cf4aaf96a3536 100644 (file)
@@ -9,7 +9,7 @@ rt3625          closed          explorer
 rt3746         open            marka
 rt3892         closed          explorer
 rt4090         closed          explorer
-rt4112         review          explorer
+rt4112         closed          explorer
 adb_race       review          explorer
 rt4319         review          explorer
 rt3907         review          explorer
index 99c5f26b77ab9ee2d8fd9561c66f1b0ade75f42a..b7aeccfd3953502cdf77fd1e36508d2b75056713 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: namedconf.c,v 1.9 2002/09/10 04:45:54 marka Exp $ */
+/* $Id: namedconf.c,v 1.10 2002/11/12 23:38:12 explorer Exp $ */
 
 #include <config.h>
 
@@ -502,6 +502,7 @@ options_clauses[] = {
        { "statistics-file", &cfg_type_qstring, 0 },
        { "statistics-interval", &cfg_type_uint32, CFG_CLAUSEFLAG_NYI },
        { "tcp-clients", &cfg_type_uint32, 0 },
+       { "tcp-listen-queue", &cfg_type_uint32, 0 },
        { "tkey-dhkey", &cfg_type_tkey_dhkey, 0 },
        { "tkey-gssapi-credential", &cfg_type_qstring, 0 },
        { "tkey-domain", &cfg_type_qstring, 0 },