Commit 2e3ea04a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(PROTECTED_FDS): Added parenthesis around the number.

(MAX_NO_OF_CONNECTIONS): Removed.
(USING_RLIMIT_NOFILE): Define if we have a good setrlimit.
(fd_ceiling): New variable.
parent ccd1a2fd
/*
* $Id: kom-config.h,v 1.6 2002/10/04 23:31:51 ceder Exp $
* $Id: kom-config.h,v 1.7 2002/10/26 22:46:47 ceder Exp $
* Copyright (C) 1991-1994, 1998-1999, 2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -82,20 +82,22 @@ extern const char *CONFIG_FILE;
*/
#ifndef PROTECTED_FDS
#define PROTECTED_FDS 12
#define PROTECTED_FDS (12)
#endif
/*
* An upper limit of how many connections to LysKOM that can be opened
* simultaneously. If we HAVE_GETDTABLESIZE this is set once and for
* all at the beginning of main(). Otherwise it is determined at
* compile-time.
*/
#if defined(HAVE_GETDTABLESIZE) || defined(HAVE_SYSCONF)
extern int MAX_NO_OF_CONNECTIONS;
#if (defined(HAVE_SETRLIMIT) && defined(RLIMIT_NOFILE) \
&& !defined(HAVE_BROKEN_NOFILE))
# define USING_RLIMIT_NOFILE 1
#else
extern const int MAX_NO_OF_CONNECTIONS;
# undef USING_RLIMIT_NOFILE
#endif
/*
* An upper limit of how many file descriptors lyskomd will have opened
* simultaneously. This is set at the beginning of main(). The first
* PROTECTED_FDS file descriptors are never used for clients.
*/
extern int fd_ceiling;
/* What is whitespace? */
extern const char *WHITESPACE;
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