MCPcopy Create free account
hub / github.com/apache/httpd / end_output_stream

Function end_output_stream

server/protocol.c:1692–1708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1690}
1691
1692static void end_output_stream(request_rec *r, int status)
1693{
1694 conn_rec *c = r->connection;
1695 apr_bucket_brigade *bb;
1696 apr_bucket *b;
1697
1698 bb = apr_brigade_create(r->pool, c->bucket_alloc);
1699 if (status != OK) {
1700 b = ap_bucket_error_create(status, NULL, r->pool, c->bucket_alloc);
1701 APR_BRIGADE_INSERT_TAIL(bb, b);
1702 }
1703 b = apr_bucket_eos_create(c->bucket_alloc);
1704 APR_BRIGADE_INSERT_TAIL(bb, b);
1705
1706 ap_pass_brigade(r->output_filters, bb);
1707 apr_brigade_cleanup(bb);
1708}
1709
1710AP_DECLARE(void) ap_finalize_sub_req_protocol(request_rec *sub)
1711{

Callers 2

Calls 2

ap_bucket_error_createFunction · 0.85
ap_pass_brigadeFunction · 0.85

Tested by

no test coverage detected