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

Function h2_push_diary_find

modules/http2/h2_push.c:590–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590static int h2_push_diary_find(h2_push_diary *diary, apr_uint64_t hash)
591{
592 if (diary) {
593 h2_push_diary_entry *e;
594 int i;
595
596 /* search from the end, where the last accessed digests are */
597 for (i = diary->entries->nelts-1; i >= 0; --i) {
598 e = &APR_ARRAY_IDX(diary->entries, i, h2_push_diary_entry);
599 if (e->hash == hash) {
600 return i;
601 }
602 }
603 }
604 return -1;
605}
606
607static void move_to_last(h2_push_diary *diary, apr_size_t idx)
608{

Callers 1

h2_push_diary_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected