]> granicus.if.org Git - apache/commitdiff
mod_bucketeer: cleanup properly on EOS and write.
authorYann Ylavic <ylavic@apache.org>
Tue, 6 Oct 2015 16:30:53 +0000 (16:30 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 6 Oct 2015 16:30:53 +0000 (16:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1707087 13f79535-47bb-0310-9956-ffa450edef68

modules/debugging/mod_bucketeer.c

index 4142cbe22e58a5b94e7ba1000faec00285d1a15d..2b10cd5b00617c7d11ff6b1860255fbee01c78df 100644 (file)
@@ -95,6 +95,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
             /* Okay, we've seen the EOS.
              * Time to pass it along down the chain.
              */
+            ap_remove_output_filter(f);
             return ap_pass_brigade(f->next, ctx->bb);
         }
 
@@ -145,6 +146,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
                         if (rv) {
                             return rv;
                         }
+                        apr_brigade_cleanup(ctx->bb);
                     }
                 }
             }