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

Function bucket_destroy

modules/http2/h2_bucket_eos.c:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static void bucket_destroy(void *data)
89{
90 h2_bucket_eos *h = data;
91
92 if (apr_bucket_shared_destroy(h)) {
93 h2_stream *stream = h->stream;
94 if (stream && stream->pool) {
95 apr_pool_cleanup_kill(stream->pool, &h->stream, bucket_cleanup);
96 }
97 apr_bucket_free(h);
98 if (stream) {
99 h2_stream_dispatch(stream, H2_SEV_EOS_SENT);
100 }
101 }
102}
103
104const apr_bucket_type_t h2_bucket_type_eos = {
105 "H2EOS", 5, APR_BUCKET_METADATA,

Callers

nothing calls this directly

Calls 1

h2_stream_dispatchFunction · 0.85

Tested by

no test coverage detected