From: dgaudet Date: Sun, 20 Jul 1997 18:26:16 +0000 (+0000) Subject: Give more accurate instructions on how to increase HARD_SERVER_LIMIT X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91bc7344b9bae97f667b1b82199f34ac668392a5;p=thirdparty%2Fapache%2Fhttpd.git Give more accurate instructions on how to increase HARD_SERVER_LIMIT for the case where MaxClients > HARD_SERVER_LIMIT. Reviewed by: Dean Gaudet (hey it's a doc change!) Submitted by: Marc Slemko git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78693 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/APACHE_1_2_X/src/main/http_core.c b/APACHE_1_2_X/src/main/http_core.c index 6a9edf12c93..221771acf2d 100644 --- a/APACHE_1_2_X/src/main/http_core.c +++ b/APACHE_1_2_X/src/main/http_core.c @@ -1019,10 +1019,11 @@ const char *set_max_free_servers (cmd_parms *cmd, void *dummy, char *arg) { const char *set_server_limit (cmd_parms *cmd, void *dummy, char *arg) { daemons_limit = atoi (arg); if (daemons_limit > HARD_SERVER_LIMIT) { - fprintf(stderr, "WARNING: Compile-time limit of %d servers\n", - HARD_SERVER_LIMIT); - fprintf(stderr, " Adjusting as required (to increase, please read\n"); - fprintf(stderr, " the documentation)\n"); + fprintf(stderr, "WARNING: MaxClients of %d exceeds compile time limit " + "of %d servers,\n", daemons_limit, HARD_SERVER_LIMIT); + fprintf(stderr, " lowering MaxClients to %d. To increase, please " + "see the\n", HARD_SERVER_LIMIT); + fprintf(stderr, " HARD_SERVER_LIMIT define in src/httpd.h.\n"); daemons_limit = HARD_SERVER_LIMIT; } else if (daemons_limit < 1) { fprintf (stderr, "WARNING: Require MaxClients > 0, setting to 1\n");