| 262 | } |
| 263 | |
| 264 | static 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 | |
| 285 | static int on_begin_headers_cb(nghttp2_session *ngh2, |
| 286 | const nghttp2_frame *frame, void *userp) |
nothing calls this directly
no test coverage detected