]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
PR#37770: Don't try to use dead backend connection in proxy
authorNick Kew <niq@apache.org>
Mon, 14 Aug 2006 13:26:07 +0000 (13:26 +0000)
committerNick Kew <niq@apache.org>
Mon, 14 Aug 2006 13:26:07 +0000 (13:26 +0000)
(Patch from Olivier BOEL)

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

modules/proxy/proxy_util.c

index e450dea10d14ad929f3de3e797eaad99afcab694..edee0a61f4327aeb3ae9729fad3212a83823185a 100644 (file)
@@ -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 {