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

Function h2_proxy_session_cleanup

modules/http2/h2_proxy_session.c:1710–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1708}
1709
1710void h2_proxy_session_cleanup(h2_proxy_session *session,
1711 h2_proxy_request_done *done)
1712{
1713 if (!h2_proxy_ihash_empty(session->streams)) {
1714 cleanup_iter_ctx ctx;
1715 ctx.session = session;
1716 ctx.done = done;
1717 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c, APLOGNO(03519)
1718 "h2_proxy_session(%s): terminated, %d streams unfinished",
1719 session->id, (int)h2_proxy_ihash_count(session->streams));
1720 h2_proxy_ihash_iter(session->streams, done_iter, &ctx);
1721 h2_proxy_ihash_clear(session->streams);
1722 }
1723}
1724
1725int h2_proxy_session_is_reusable(h2_proxy_session *session)
1726{

Callers 1

ctx_runFunction · 0.85

Calls 4

h2_proxy_ihash_emptyFunction · 0.85
h2_proxy_ihash_countFunction · 0.85
h2_proxy_ihash_iterFunction · 0.85
h2_proxy_ihash_clearFunction · 0.85

Tested by

no test coverage detected