httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r357156 - /httpd/httpd/trunk/modules/debug/mod_bucketeer.c
Date Fri, 16 Dec 2005 13:08:37 GMT
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;
+                        }
                     }
                 }
             }



Mime
View raw message