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

Function on_frame_not_send_cb

modules/http2/h2_session.c:634–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632}
633
634static int on_frame_not_send_cb(nghttp2_session *ngh2,
635 const nghttp2_frame *frame,
636 int ngh2_err,
637 void *user_data)
638{
639 h2_session *session = user_data;
640 int stream_id = frame->hd.stream_id;
641 h2_stream *stream;
642 char buffer[256];
643
644 stream = get_stream(session, stream_id);
645 h2_util_frame_print(frame, buffer, sizeof(buffer)/sizeof(buffer[0]));
646 if (!stream || !stream->rst_error)
647 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c1,
648 H2_SSSN_LOG(APLOGNO(10509), session,
649 "not sent FRAME[%s], error %d: %s"),
650 buffer, ngh2_err, nghttp2_strerror(ngh2_err));
651 if(stream) {
652 h2_stream_rst(stream, NGHTTP2_PROTOCOL_ERROR);
653 return 0;
654 }
655 return NGHTTP2_ERR_CALLBACK_FAILURE;
656}
657
658#ifdef H2_NG2_INVALID_HEADER_CB
659static int on_invalid_header_cb(nghttp2_session *ngh2,

Callers

nothing calls this directly

Calls 3

get_streamFunction · 0.85
h2_util_frame_printFunction · 0.85
h2_stream_rstFunction · 0.85

Tested by

no test coverage detected