* 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>
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\
* 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
"/run/lwresd.pid");
EXTERN const char * ns_g_username INIT(NULL);
+EXTERN int ns_g_listen INIT(3);
+
#undef EXTERN
#undef INIT
* 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>
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",
* 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>
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.
<!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>
<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>
</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>
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
* 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>
{ "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 },