httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r431339 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Mon, 14 Aug 2006 13:26:08 GMT
Author: niq
Date: Mon Aug 14 06:26:07 2006
New Revision: 431339

URL: http://svn.apache.org/viewvc?rev=431339&view=rev
Log:
PR#37770: Don't try to use dead backend connection in proxy
(Patch from Olivier BOEL)

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=431339&r1=431338&r2=431339&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Mon Aug 14 06:26:07 2006
@@ -2089,7 +2089,8 @@
     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 {



Mime
View raw message