From 9d84c0a13e975f3b198f51b0f9e3cae9e311a236 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 31 Oct 2002 11:39:36 +0000 Subject: [PATCH] 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 --- server/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/protocol.c b/server/protocol.c index 34c268b4b5..e92ff2be68 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; } -- 2.40.0