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
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;
+ }
}
}
}