Commit 6a618f57 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(MAX_NO_OF_CONNECTIONS): Removed.

(fd_ceiling): New variable.
parent 319e96e6
/*
* $Id: server-config.c,v 0.79 2002/10/04 23:31:50 ceder Exp $
* $Id: server-config.c,v 0.80 2002/10/26 22:46:20 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -344,21 +344,8 @@ static const struct parameter parameters[] = {
const char * DEFAULT_DBASE_DIR = DEFAULT_PREFIX;
const char *CONFIG_FILE = "etc/config";
/*
* The following should always be true:
* 0 <= SYNCTIMEOUT <= GARBTIMEOUT <= TIMEOUT
* Times in milliseconds.
*/
/*
* MAX_NO_OF_CONNECTIONS must be small enough. See comment in kom-config.h.
*/
#if defined(HAVE_GETDTABLESIZE) || defined(HAVE_SYSCONF)
int MAX_NO_OF_CONNECTIONS = 0; /* Initialized by main(). */
#else
const int MAX_NO_OF_CONNECTIONS = (OPEN_MAX - PROTECTED_FDS);
#endif
/* This file descriptor, and any above it, will not be used by lyskomd. */
int fd_ceiling = 0; /* Initialized by main(). */
/* What is whitespace? */
const char *WHITESPACE = " \t\n\r";
......@@ -554,7 +541,12 @@ read_configuration(const char *conf_file)
param_name(&param.saved_items_per_call));
}
/* FIXME (bug 165): Check config parameters for sanity */
/* FIXME (bug 165): Check config parameters for sanity.
One thing to check is:
The following should always be true:
0 <= SYNCTIMEOUT <= GARBTIMEOUT <= TIMEOUT
Times in milliseconds.
There are probably many more things to check. */
if (err)
restart_kom("Please fix the above configuration errors.\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