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

Function h2_proxy_iq_remove

modules/http2/h2_proxy_util.c:261–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261int h2_proxy_iq_remove(h2_proxy_iqueue *q, int sid)
262{
263 int i;
264 for (i = 0; i < q->nelts; ++i) {
265 if (sid == q->elts[(q->head + i) % q->nalloc]) {
266 break;
267 }
268 }
269
270 if (i < q->nelts) {
271 ++i;
272 for (; i < q->nelts; ++i) {
273 q->elts[(q->head+i-1)%q->nalloc] = q->elts[(q->head+i)%q->nalloc];
274 }
275 --q->nelts;
276 return 1;
277 }
278 return 0;
279}
280
281void h2_proxy_iq_clear(h2_proxy_iqueue *q)
282{

Callers 3

stream_resumeFunction · 0.85
check_suspendedFunction · 0.85
ev_stream_doneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected