]> granicus.if.org Git - apache/commitdiff
when the connection drops, c->aborted is set but generally
authorJeff Trawick <trawick@apache.org>
Thu, 31 Oct 2002 11:39:36 +0000 (11:39 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 31 Oct 2002 11:39:36 +0000 (11:39 +0000)
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

index 34c268b4b56946cad95634816ace8d8befd6e83c..e92ff2be686f6e480f3e40d10a886856c10f7717 100644 (file)
@@ -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;
                     }