Brian Akins wrote:
Justin Erenkrantz wrote:


After a bit more of thinking, the right thing to do would be to have
mod_proxy force a dropped connection to the client.


So, do we just need to set r->connection->aborted = 1 and core will take care of it? If so, a patch should be trivial.


After a quick glance through mod_http_proxy, this look to be correct:


--- mod_proxy_http.c.orig       2005-12-06 12:11:19.000000000 -0500
+++ mod_proxy_http.c    2005-12-06 14:06:00.000000000 -0500
@@ -1482,6 +1482,7 @@
                     else if (rv != APR_SUCCESS) {
                         ap_log_cerror(APLOG_MARK, APLOG_ERR, rv, c,
                                       "proxy: error reading response");
+                        c->aborted = 1;
                         break;
                     }
                     /* next time try a non-blocking read */

--
Brian Akins
Lead Systems Engineer
CNN Internet Technologies

Reply via email to