From ffdab778e2a66b340073ac4db22820c6a8bc6996 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Fri, 14 Feb 2014 17:55:19 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy_http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 613f47b5ab..bb4a2a591f 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) { -- 2.40.0