Blame SOURCES/httpd-2.4.6-r1726019.patch
|
|
008793 |
diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c
|
|
|
008793 |
index 19fed62..7889b0e 100644
|
|
|
008793 |
--- a/modules/proxy/mod_proxy_fcgi.c
|
|
|
008793 |
+++ b/modules/proxy/mod_proxy_fcgi.c
|
|
|
008793 |
@@ -927,6 +927,15 @@ static int fcgi_do_request(apr_pool_t *p, request_rec *r,
|
|
|
008793 |
/* Step 3: Read records from the back end server and handle them. */
|
|
|
008793 |
rv = dispatch(conn, conf, r, request_id);
|
|
|
008793 |
if (rv != APR_SUCCESS) {
|
|
|
008793 |
+ /* If the client aborted the connection during retrieval or (partially)
|
|
|
008793 |
+ * sending the response, dont't return a HTTP_SERVICE_UNAVAILABLE, since
|
|
|
008793 |
+ * this is not a backend problem. */
|
|
|
008793 |
+ if (r->connection->aborted) {
|
|
|
008793 |
+ ap_log_rerror(APLOG_MARK, APLOG_TRACE1, rv, r,
|
|
|
008793 |
+ "The client aborted the connection.");
|
|
|
008793 |
+ conn->close = 1;
|
|
|
008793 |
+ return OK;
|
|
|
008793 |
+ }
|
|
|
008793 |
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(01075)
|
|
|
008793 |
"Error dispatching request to %s:", server_portstr);
|
|
|
008793 |
conn->close = 1;
|