diff --git a/src/server/server-config.c b/src/server/server-config.c index 92ab12d9d993b4e6d1735addd78f44fb8cee82c9..b13ffa35185b3ba87d87b7a09b159349b8c0a963 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. */