Commit 3ae5fcb4 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Increase PROTECTED_FDS to 12.

parent 9a140832
/*
* $Id: config.h,v 0.3 1991/09/15 10:13:11 linus Exp $
* $Id: config.h,v 0.4 1991/10/29 05:13:39 ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -140,7 +140,7 @@ extern const int MAX_CREA_MISC; /* Sum of recipients, cc_recipients, comm_to
* MAX_NO_OF_CONNECTIONS must be small enough. Each connection takes one
* file descriptor, and it is important that there are a few descriptors
* left so that it is possible to save the data base. lyskomd might crash
* if this number is too big and that many connectionattempts are made
* if this number is too big and that many connection attempts are made
* simultaneously.
*
* The following descriptors are open by LysKOM:
......@@ -149,15 +149,22 @@ extern const int MAX_CREA_MISC; /* Sum of recipients, cc_recipients, comm_to
* TEXTFILE_NAME (always open)
* DATAFILE_NAME (often open)
* STATISTIC_NAME (open after a SIGUSR1)
* Two TCP/IP ports (normal connections and mux-connections)
* One UDP/IP port (probably from -lresolv, but I'm not sure)
* Thus, the max number of connections is the number of available file
* descriptors minus six. This has not been fully tested for a long
* while, so we subtract eight just to be on the safe side. That still
* gives 56 simultaneous users on a sun4, and that is enough for the
* time beeing. (If you need more connections you can ran a mux. Send
* descriptors minus nine. 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.)
*
* Machines where less or more files are open should set this in their
* m-config.h files.
*/
#define PROTECTED_FDS 8
#ifndef PROTECTED_FDS
#define PROTECTED_FDS 12
#endif
/*
* An upper limit of how many connections to LysKOM that can be opened
......
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