summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-05-25 23:43:49 -0700
committerAdam Jackson <ajax@redhat.com>2016-07-21 15:04:47 -0400
commit8217c29d2d8b29bd66bc54fee3fe5cb3385a05c7 (patch)
treebcb601982b65aaf9b55a76dd49ee7afae74ff87c /os
parente0edb963fe09582f23a4b55da4f8840173e7a1ee (diff)
Allow 1024 and 2048 for LimitClients
There's no reason not to offer ridiculous numbers of clients; only a few static data structures are arrays of this length. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'os')
-rw-r--r--os/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/utils.c b/os/utils.c
index 868a2d6de..ac55cd79f 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -867,8 +867,10 @@ ProcessCommandLine(int argc, char *argv[])
if (LimitClients != 64 &&
LimitClients != 128 &&
LimitClients != 256 &&
- LimitClients != 512) {
- FatalError("maxclients must be one of 64, 128, 256 or 512\n");
+ LimitClients != 512 &&
+ LimitClients != 1024 &&
+ LimitClients != 2048) {
+ FatalError("maxclients must be one of 64, 128, 256, 512, 1024 or 2048\n");
}
} else
UseMsg();