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

Function h2_iq_remove

modules/http2/h2_util.c:380–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378}
379
380int h2_iq_remove(h2_iqueue *q, int sid)
381{
382 int i;
383 for (i = 0; i < q->nelts; ++i) {
384 if (sid == q->elts[(q->head + i) % q->nalloc]) {
385 break;
386 }
387 }
388
389 if (i < q->nelts) {
390 ++i;
391 for (; i < q->nelts; ++i) {
392 q->elts[(q->head+i-1)%q->nalloc] = q->elts[(q->head+i)%q->nalloc];
393 }
394 --q->nelts;
395 return 1;
396 }
397 return 0;
398}
399
400void h2_iq_clear(h2_iqueue *q)
401{

Callers 1

m_stream_cleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected