Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
531b3f6c
Commit
531b3f6c
authored
33 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Use m-config.h to get number of FD's. Add some comments.
parent
f5229260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/server-config.c
+19
-8
19 additions, 8 deletions
src/server/server-config.c
with
19 additions
and
8 deletions
src/server/server-config.c
+
19
−
8
View file @
531b3f6c
...
...
@@ -5,7 +5,10 @@
* to recompile the entire server.
*/
static
char
*
rcsid
=
"$Id: server-config.c,v 0.8 1991/08/28 02:36:37 ceder Exp $"
;
#include
<config.h>
#include
<m-config.h>
static
char
*
rcsid
=
"$Id: server-config.c,v 0.9 1991/08/30 01:32:18 ceder Exp $"
;
...
...
@@ -84,17 +87,25 @@ const int CACHE_TEXT_STATS = 10;
/*
* 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
* 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
* simultaneously.
*
* The following descriptors are open by LysKOM:
* stdin, stdout, stderr (stdin and stdout could probably be closed.
* The log() function prints to stderr.)
* TEXTFILE_NAME (always open)
* DATAFILE_NAME (often open)
* STATISTIC_NAME (open after a SIGUSR1)
* 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
* mail to kom@lysator.liu.se for more info.)
*/
#ifdef __sequent__
const
int
MAX_NO_OF_CONNECTIONS
=
12
;
#else
const
int
MAX_NO_OF_CONNECTIONS
=
50
;
/* the maximum number of persons
* that can use Kom simultaneously */
#endif
const
int
MAX_NO_OF_CONNECTIONS
=
(
MAX_OPEN_FD
-
8
);
const
int
MARK_AS_READ_CHUNK
=
128
;
/* You can't mark more than this many
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment