* When mod_http2 is loaded more then ThreadsPerChild backend connections can
authorRuediger Pluem <rpluem@apache.org>
Thu, 1 Feb 2018 07:34:02 +0000 (07:34 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 1 Feb 2018 07:34:02 +0000 (07:34 +0000)
  be useful as mod_http2 has an additional thread pool on top of
  ThreadsPerChild.
  But leave the default with ThreadsPerChild.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822849 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index d704dae37da2db60063f2eb8c002fa7a84af29e8..c8b629e8c703e08a3017666786b938dd11df0305 100644 (file)
@@ -1841,8 +1841,7 @@ PROXY_DECLARE(apr_status_t) ap_proxy_initialize_worker(proxy_worker *worker, ser
 
         ap_mpm_query(AP_MPMQ_MAX_THREADS, &mpm_threads);
         if (mpm_threads > 1) {
-            /* Set hard max to no more then mpm_threads */
-            if (worker->s->hmax == 0 || worker->s->hmax > mpm_threads) {
+            if (worker->s->hmax == 0) {
                 worker->s->hmax = mpm_threads;
             }
             if (worker->s->smax == -1 || worker->s->smax > worker->s->hmax) {