From: Joe Orton Date: Wed, 22 Oct 2003 11:38:46 +0000 (+0000) Subject: Prevent slow graceful restarts on some platforms: X-Git-Tag: pre_ajp_proxy~1105 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc2aea49ab6ab310c03396e25028f22f9bc67060;p=thirdparty%2Fapache%2Fhttpd.git Prevent slow graceful restarts on some platforms: * prefork.c (ap_mpm_run): Only make as many dummy connections as slots used, not as many as slots are available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101513 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 33442e53419..e1c01178d30 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -1123,7 +1123,7 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) "Graceful restart requested, doing restart"); /* kill off the idle ones */ - ap_mpm_pod_killpg(pod, ap_daemons_limit); + ap_mpm_pod_killpg(pod, ap_max_daemons_limit); /* This is mostly for debugging... so that we know what is still * gracefully dealing with existing request. This will break