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

Function append_scratch

modules/http2/h2_c1_io.c:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168static void append_scratch(h2_c1_io *io)
169{
170 if (io->scratch && io->slen > 0) {
171 apr_bucket *b = apr_bucket_heap_create(io->scratch, io->slen,
172 apr_bucket_free,
173 io->session->c1->bucket_alloc);
174 APR_BRIGADE_INSERT_TAIL(io->output, b);
175 io->buffered_len += io->slen;
176 io->scratch = NULL;
177 io->slen = io->ssize = 0;
178 }
179}
180
181static apr_size_t assure_scratch_space(h2_c1_io *io) {
182 apr_size_t remain = io->ssize - io->slen;

Callers 3

assure_scratch_spaceFunction · 0.85
pass_outputFunction · 0.85
h2_c1_io_appendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected