]> granicus.if.org Git - apache/commitdiff
mod_proxy_http: don't recycle backend connections known to be closed (eg. EOS by...
authorYann Ylavic <ylavic@apache.org>
Fri, 14 Feb 2014 17:55:19 +0000 (17:55 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 14 Feb 2014 17:55:19 +0000 (17:55 +0000)
This saves a useless ap_is_socket_connected() call when reused.

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

modules/proxy/mod_proxy_http.c

index 613f47b5ab083b86091a5a228ea487e81ecfe201..bb4a2a591fab6bd9065841eac23205e76343e0ad 100644 (file)
@@ -1680,6 +1680,7 @@ int ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
                         continue;
                     }
                     else if (rv == APR_EOF) {
+                        backend->close = 1;
                         break;
                     }
                     else if (rv != APR_SUCCESS) {