Commit 5b06674e authored by Joe Orton's avatar Joe Orton
Browse files

* modules/debug/mod_bucketeer.c (bucketeer_out_filter): Only pass on

the brigade if the pass delimiter is reached and not for any flush
delimiter; allows creating brigades with a flush bucket in the middle.
Fail if ap_pass_brigade() fails.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357156 13f79535-47bb-0310-9956-ffa450edef68
parent 24a742bd
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -138,10 +138,13 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
                        p = apr_bucket_flush_create(f->c->bucket_alloc);
                        APR_BRIGADE_INSERT_TAIL(ctx->bb, p);
                    }
                    if (data[i] == c->flushdelimiter ||
                        data[i] == c->passdelimiter) {
                        ap_pass_brigade(f->next, ctx->bb);
                       /* apr_brigade_cleanup(ctx->bb);*/
                    if (data[i] == c->passdelimiter) {
                        apr_status_t rv;

                        rv = ap_pass_brigade(f->next, ctx->bb);
                        if (rv) {
                            return rv;
                        }
                    }
                }
            }