You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2005/12/30 23:16:19 UTC

svn commit: r360174 - /httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c

Author: pquerna
Date: Fri Dec 30 14:16:14 2005
New Revision: 360174

URL: http://svn.apache.org/viewcvs?rev=360174&view=rev
Log:
When we get some kind of write failure or protocol problem, close the current socket, since we don't know if we are left in a working state.

Modified:
    httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c

Modified: httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c?rev=360174&r1=360173&r2=360174&view=diff
==============================================================================
--- httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c (original)
+++ httpd/httpd/branches/fcgi-proxy-dev/modules/proxy/mod_proxy_fcgi.c Fri Dec 30 14:16:14 2005
@@ -632,6 +632,7 @@
         ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, r->server,
                      "proxy: FCGI: Failed Writing Request to %s:",
                      server_portstr);
+        conn->close = 1;
         return HTTP_SERVICE_UNAVAILABLE;
     }
     
@@ -641,6 +642,7 @@
         ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, r->server,
                      "proxy: FCGI: Failed writing Environment to %s:",
                      server_portstr);
+        conn->close = 1;
         return HTTP_SERVICE_UNAVAILABLE;
     }
 
@@ -650,6 +652,7 @@
         ap_log_error(APLOG_MARK, APLOG_DEBUG, rv, r->server,
                      "proxy: FCGI: Failed writing STDIN to %s:",
                      server_portstr);
+        conn->close = 1;
         return HTTP_SERVICE_UNAVAILABLE;
     }