]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_proxy_fcgi: revert r1756187.
authorYann Ylavic <ylavic@apache.org>
Sun, 21 Aug 2016 23:53:24 +0000 (23:53 +0000)
committerYann Ylavic <ylavic@apache.org>
Sun, 21 Aug 2016 23:53:24 +0000 (23:53 +0000)
rpluem: The default is disablereuse=off and the code you removed makes the
default disablereuse=on.

ylavic: so right..

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

modules/proxy/mod_proxy_fcgi.c

index 10109813a51467b0e0e747ca0bc9ffd00145dd8c..90b1c7d895c24422b9ec970913afbedf6bef4167 100644 (file)
@@ -938,6 +938,16 @@ static int proxy_fcgi_handler(request_rec *r, proxy_worker *worker,
         goto cleanup;
     }
 
+    /* This scheme handler does not reuse connections by default, to
+     * avoid tying up a fastcgi that isn't expecting to work on 
+     * parallel requests.  But if the user went out of their way to
+     * type the default value of disablereuse=off, we'll allow it.
+     */  
+    backend->close = 1;
+    if (worker->s->disablereuse_set && !worker->s->disablereuse) { 
+        backend->close = 0;
+    }
+
     /* Step Two: Make the Connection */
     if (ap_proxy_check_connection(FCGI_SCHEME, backend, r->server, 0,
                                   PROXY_CHECK_CONN_EMPTY)