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

Function on_stream_close_cb

modules/http2/h2_session.c:264–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262}
263
264static int on_stream_close_cb(nghttp2_session *ngh2, int32_t stream_id,
265 uint32_t error_code, void *userp)
266{
267 h2_session *session = (h2_session *)userp;
268 h2_stream *stream;
269
270 (void)ngh2;
271 stream = get_stream(session, stream_id);
272 if (stream) {
273 if (error_code) {
274 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c1,
275 H2_STRM_LOG(APLOGNO(03065), stream,
276 "closing with err=%d %s"),
277 (int)error_code, h2_protocol_err_description(error_code));
278 h2_stream_rst(stream, error_code);
279 h2_mplx_c1_client_rst(session->mplx, stream_id, stream);
280 }
281 }
282 return 0;
283}
284
285static int on_begin_headers_cb(nghttp2_session *ngh2,
286 const nghttp2_frame *frame, void *userp)

Callers

nothing calls this directly

Calls 4

get_streamFunction · 0.85
h2_stream_rstFunction · 0.85
h2_mplx_c1_client_rstFunction · 0.85

Tested by

no test coverage detected