You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2005/12/16 14:08:37 UTC
svn commit: r357156 - /httpd/httpd/trunk/modules/debug/mod_bucketeer.c
Author: jorton
Date: Fri Dec 16 05:08:32 2005
New Revision: 357156
URL: http://svn.apache.org/viewcvs?rev=357156&view=rev
Log:
* 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.
Modified:
httpd/httpd/trunk/modules/debug/mod_bucketeer.c
Modified: httpd/httpd/trunk/modules/debug/mod_bucketeer.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/debug/mod_bucketeer.c?rev=357156&r1=357155&r2=357156&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/debug/mod_bucketeer.c (original)
+++ httpd/httpd/trunk/modules/debug/mod_bucketeer.c Fri Dec 16 05:08:32 2005
@@ -138,10 +138,13 @@
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;
+ }
}
}
}