From ca7b8c99343d62fb332df933ac57f9429d8e06a1 Mon Sep 17 00:00:00 2001 From: Per Cederqvist <ceder@lysator.liu.se> Date: Wed, 28 Aug 1991 02:36:37 +0000 Subject: [PATCH] Some comments added/clarified. --- src/server/server-config.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/server/server-config.c b/src/server/server-config.c index 92ab12d9d..b13ffa351 100644 --- a/src/server/server-config.c +++ b/src/server/server-config.c @@ -5,13 +5,13 @@ * to recompile the entire server. */ -static char *rcsid = "$Id: server-config.c,v 0.7 1991/08/28 02:21:53 ceder Exp $"; +static char *rcsid = "$Id: server-config.c,v 0.8 1991/08/28 02:36:37 ceder Exp $"; /* Where to save things. These are used by ramkomd. */ -const char * DEFAULT_DBASE_DIR = "/usr/lyskom"; +const char * DEFAULT_DBASE_DIR = "/usr/lyskom"; /* Changed with -D flag. */ const char *DATAFILE_NAME = "db/ramkomd-data"; const char *BACKUPFILE_NAME = "db/ramkomd-backup"; @@ -67,7 +67,11 @@ const int MAX_CREA_MISC = 512; /* Sum of recipients, cc_recipients, comm_to * and footn_to must not exceed MAX_CREA_MISC * when the text is created. */ -/* Size of the cache. (only applies to diskomd). */ +/* + * Size of the cache. This tells us how many clean objects of each + * type to hold. Since all dirty items are also held in core, the + * actual size of the cache is bigger. + */ const int CACHE_CONFERENCES = 10; const int CACHE_PERSONS = 10; @@ -77,13 +81,22 @@ const int CACHE_TEXT_STATS = 10; * Some other limits */ +/* + * 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 will crash + * if this number is too big and that many connectionattempts are made + * simultaneously. + */ #ifdef __sequent__ const int MAX_NO_OF_CONNECTIONS = 12; #else -const int MAX_NO_OF_CONNECTIONS = 32; /* the maximum number of persons +const int MAX_NO_OF_CONNECTIONS = 50; /* the maximum number of persons * that can use Kom simultaneously */ #endif + + const int MARK_AS_READ_CHUNK = 128; /* You can't mark more than this many * texts as read in one call. */ -- GitLab