From: Nick Kew Date: Mon, 14 Aug 2006 13:26:07 +0000 (+0000) Subject: PR#37770: Don't try to use dead backend connection in proxy X-Git-Tag: 2.3.0~2165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b192718732d9b4257e0899efaf7cee2a307e5e9;p=thirdparty%2Fapache%2Fhttpd.git PR#37770: Don't try to use dead backend connection in proxy (Patch from Olivier BOEL) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@431339 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index e450dea10d1..edee0a61f43 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2089,7 +2089,8 @@ static int is_socket_connected(apr_socket_t *sock) socket_status = apr_socket_recv(sock, test_buffer, &buffer_len); /* put back old timeout */ apr_socket_timeout_set(sock, current_timeout); - if (APR_STATUS_IS_EOF(socket_status)) { + if (APR_STATUS_IS_EOF(socket_status) + || APR_STATUS_IS_ECONNRESET(socket_status)) { return 0; } else {