From: Yann Ylavic Date: Fri, 14 Feb 2014 17:55:19 +0000 (+0000) Subject: mod_proxy_http: don't recycle backend connections known to be closed (eg. EOS by... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=674f48c656f7f52f599197a6b3e52562d9ab1bf6;p=thirdparty%2Fapache%2Fhttpd.git mod_proxy_http: don't recycle backend connections known to be closed (eg. EOS by close). 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 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 613f47b5ab0..bb4a2a591fa 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -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) {