Commit 7ed3680a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(PROTECTED_FDS): Account for the two file descriptors used by ADNS.

parent a8ac517d
/*
* $Id: kom-config.h,v 1.8 2003/07/14 07:52:02 ceder Exp $
* $Id: kom-config.h,v 1.9 2003/08/07 07:42:38 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999, 2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -70,10 +70,11 @@ extern const char *CONFIG_FILE;
* One TCP/IP ports (listening for normal connections)
* One UDP/IP port (probably from -lresolv, but I'm not sure)
* One TCP/IP port (if HAVE_LIBAUTHUSER is defined)
* One TCP and one UDP port (used by ADNS)
* Two pipes (used by signal.c in liboop)
* Thus, the max number of connections is the number of available file
* descriptors minus 11. This has not been fully tested for a long
* while, so we subtract 20 just to be on the safe side.
* descriptors minus 13. This has not been fully tested for a long
* while, so we subtract 9 more just to be on the safe side.
*
* Machines where less or more files are open should set this in the
* configure script.
......@@ -82,7 +83,7 @@ extern const char *CONFIG_FILE;
*/
#ifndef PROTECTED_FDS
#define PROTECTED_FDS (20)
#define PROTECTED_FDS (13 + 9)
#endif
#if (defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) \
......
......@@ -49,7 +49,7 @@ set timeout [expr {3 * $timeout + 2}]
#set timeout 5
# This constant is also defined in src/include/kom-config.h.
set PROTECTED_FDS 20
set PROTECTED_FDS [expr 13 + 9]
# Some useful constants.
set nl "\r?\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment