From: Jeff Trawick Date: Thu, 31 Oct 2002 11:39:36 +0000 (+0000) Subject: when the connection drops, c->aborted is set but generally X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d84c0a13e975f3b198f51b0f9e3cae9e311a236;p=thirdparty%2Fapache%2Fhttpd.git when the connection drops, c->aborted is set but generally ap_pass_brigade returns APR_SUCCESS content-length needs to be alert to c->aborted so that it doesn't keep trying to pass brigades down (otherwise, you get errors writing to the network over and over and over and ...) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97363 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index 34c268b4b56..e92ff2be686 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -1260,7 +1260,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter( APR_BRIGADE_INSERT_TAIL(b, flush); rv = ap_pass_brigade(f->next, b); - if (rv != APR_SUCCESS) { + if (rv != APR_SUCCESS || f->c->aborted) { apr_brigade_destroy(split); return rv; }