From: Jeff Trawick Date: Fri, 5 Sep 2003 16:50:22 +0000 (+0000) Subject: Fix a misleading message from the some of the threaded MPMs when X-Git-Tag: pre_ajp_proxy~1185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3090c1b2c5f1a795770a0c9a135f7e62d08036fd;p=apache Fix a misleading message from the some of the threaded MPMs when MaxClients has to be lowered due to the setting of ServerLimit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101160 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 11a66cedf5..6b3f130fa8 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,10 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) Fix a misleading message from the some of the threaded MPMs when + MaxClients has to be lowered due to the setting of ServerLimit. + [Jeff Trawick] + *) Switch to APR 1.0 API. *) Modify ap_get_client_block() to note if it has seen EOS. diff --git a/server/mpm/experimental/leader/leader.c b/server/mpm/experimental/leader/leader.c index f66ae10971..e32f1ddd75 100644 --- a/server/mpm/experimental/leader/leader.c +++ b/server/mpm/experimental/leader/leader.c @@ -1850,7 +1850,7 @@ static const char *set_max_clients (cmd_parms *cmd, void *dummy, server_limit); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " Automatically lowering MaxClients to %d. To increase,", - server_limit); + server_limit * ap_threads_per_child); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " please see the ServerLimit directive."); ap_daemons_limit = server_limit; diff --git a/server/mpm/experimental/threadpool/threadpool.c b/server/mpm/experimental/threadpool/threadpool.c index f4558de44f..6f47c69343 100644 --- a/server/mpm/experimental/threadpool/threadpool.c +++ b/server/mpm/experimental/threadpool/threadpool.c @@ -2104,7 +2104,7 @@ static const char *set_max_clients (cmd_parms *cmd, void *dummy, server_limit); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " Automatically lowering MaxClients to %d. To increase,", - server_limit); + server_limit * ap_threads_per_child); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " please see the ServerLimit directive."); ap_daemons_limit = server_limit; diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index 563c3bcafb..e0c60bb423 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -1966,7 +1966,7 @@ static const char *set_max_clients (cmd_parms *cmd, void *dummy, server_limit); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " Automatically lowering MaxClients to %d. To increase,", - server_limit); + server_limit * ap_threads_per_child); ap_log_error(APLOG_MARK, APLOG_STARTUP, 0, NULL, " please see the ServerLimit directive."); ap_daemons_limit = server_limit;