| 2251 | } |
| 2252 | |
| 2253 | AP_DECLARE(int) ap_rflush(request_rec *r) |
| 2254 | { |
| 2255 | conn_rec *c = r->connection; |
| 2256 | apr_bucket *b; |
| 2257 | ap_filter_t *f; |
| 2258 | old_write_filter_ctx *ctx; |
| 2259 | apr_status_t rv; |
| 2260 | |
| 2261 | f = insert_old_write_filter(r); |
| 2262 | ctx = f->ctx; |
| 2263 | |
| 2264 | b = apr_bucket_flush_create(c->bucket_alloc); |
| 2265 | APR_BRIGADE_INSERT_TAIL(ctx->tmpbb, b); |
| 2266 | |
| 2267 | rv = ap_pass_brigade(r->output_filters, ctx->tmpbb); |
| 2268 | apr_brigade_cleanup(ctx->tmpbb); |
| 2269 | if (rv != APR_SUCCESS) |
| 2270 | return -1; |
| 2271 | |
| 2272 | return 0; |
| 2273 | } |
| 2274 | |
| 2275 | /* |
| 2276 | * This function sets the Last-Modified output header field to the value |
no test coverage detected