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

Function on_invalid_header_cb

modules/http2/h2_session.c:659–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

657
658#ifdef H2_NG2_INVALID_HEADER_CB
659static int on_invalid_header_cb(nghttp2_session *ngh2,
660 const nghttp2_frame *frame,
661 const uint8_t *name, size_t namelen,
662 const uint8_t *value, size_t valuelen,
663 uint8_t flags, void *user_data)
664{
665 h2_session *session = user_data;
666 h2_stream *stream;
667
668 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c1, APLOGNO(03456)
669 H2_SSSN_STRM_MSG(session, frame->hd.stream_id,
670 "invalid header '%.*s: %.*s'"),
671 (int)namelen, name, (int)valuelen, value);
672 stream = get_stream(session, frame->hd.stream_id);
673 if (stream) {
674 h2_stream_rst(stream, NGHTTP2_PROTOCOL_ERROR);
675 }
676 return 0;
677}
678#endif
679
680static ssize_t select_padding_cb(nghttp2_session *ngh2,

Callers

nothing calls this directly

Calls 2

get_streamFunction · 0.85
h2_stream_rstFunction · 0.85

Tested by

no test coverage detected