]> granicus.if.org Git - apache/commitdiff
Fix a misleading message from the some of the threaded MPMs when
authorJeff Trawick <trawick@apache.org>
Fri, 5 Sep 2003 16:50:22 +0000 (16:50 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 5 Sep 2003 16:50:22 +0000 (16:50 +0000)
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

CHANGES
server/mpm/experimental/leader/leader.c
server/mpm/experimental/threadpool/threadpool.c
server/mpm/worker/worker.c

diff --git a/CHANGES b/CHANGES
index 11a66cedf58f5129f40916bf4e310e01f200b87c..6b3f130fa86ca40bc879710f5d68585344d688cd 100644 (file)
--- 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.
index f66ae1097121fd3073d44f30cd3b75c6da491299..e32f1ddd759b55c08336296ffaebdda7675f99ae 100644 (file)
@@ -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;
index f4558de44f1f7292b3083e1dd69cfb3b7103b59e..6f47c69343343b558987fa4415c69b19df5d387f 100644 (file)
@@ -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;
index 563c3bcafb94d30a472edde7c33e7ca17706f7d4..e0c60bb423a4b2343a15fe15fd7802ed607d2b7f 100644 (file)
@@ -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;