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

Function c2_transit_recycle

modules/http2/h2_mplx.c:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250static void c2_transit_recycle(h2_mplx *m, h2_c2_transit *transit)
251{
252 if (m->c2_transits->nelts >= APR_INT32_MAX ||
253 (apr_uint32_t)m->c2_transits->nelts >= m->max_spare_transits) {
254 c2_transit_destroy(transit);
255 }
256 else {
257 APR_ARRAY_PUSH(m->c2_transits, h2_c2_transit*) = transit;
258 }
259}
260
261/**
262 * A h2_mplx needs to be thread-safe *and* if will be called by

Callers 2

c1_purge_streamsFunction · 0.85
s_next_c2Function · 0.85

Calls 1

c2_transit_destroyFunction · 0.85

Tested by

no test coverage detected