From 948e9ab8b204b6fa4056558fef8433a81fabbf01 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Fri, 16 Dec 2005 13:08:32 +0000 Subject: [PATCH] * 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 --- modules/debug/mod_bucketeer.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/debug/mod_bucketeer.c b/modules/debug/mod_bucketeer.c index 93b2e29b54..2ddd977255 100644 --- a/modules/debug/mod_bucketeer.c +++ b/modules/debug/mod_bucketeer.c @@ -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; + } } } } -- 2.40.0