Commit 14195a2b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(PROTECTED_FDS): Increased from 12 to 20. Document that liboop uses a

	couple of file descriptors, and that this setting is also
	present in unix.exp.
parent 3a3818de
/*
* $Id: kom-config.h,v 1.7 2002/10/26 22:46:47 ceder Exp $
* $Id: kom-config.h,v 1.8 2003/07/14 07:52:02 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999, 2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -67,22 +67,22 @@ extern const char *CONFIG_FILE;
* TEXTFILE_NAME (always open)
* DATAFILE_NAME (often open)
* STATISTIC_NAME (open after a SIGUSR1)
* Two TCP/IP ports (normal connections and mux-connections)
* 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)
* Two pipes (used by signal.c in liboop)
* Thus, the max number of connections is the number of available file
* descriptors minus ten. This has not been fully tested for a long
* while, so we subtract twelve just to be on the safe side. That still
* gives 52 simultaneous users on a sun4, and that is enough for the
* time beeing. (If you need more connections you can run a mux. Send
* mail to kom@lysator.liu.se for more info.)
* descriptors minus 11. This has not been fully tested for a long
* while, so we subtract 20 just to be on the safe side.
*
* Machines where less or more files are open should set this in the
* configure script.
*
* Also defined in src/server/testsuite/config/unix.exp.
*/
#ifndef PROTECTED_FDS
#define PROTECTED_FDS (12)
#define PROTECTED_FDS (20)
#endif
#if (defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) \
......
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