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

Function on_invalid_frame_recv_cb

modules/http2/h2_session.c:214–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214static int on_invalid_frame_recv_cb(nghttp2_session *ngh2,
215 const nghttp2_frame *frame,
216 int error, void *userp)
217{
218 h2_session *session = (h2_session *)userp;
219 (void)ngh2;
220
221 if (APLOGcdebug(session->c1)) {
222 char buffer[256];
223
224 h2_util_frame_print(frame, buffer, sizeof(buffer)/sizeof(buffer[0]));
225 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, 0, session->c1,
226 H2_SSSN_LOG(APLOGNO(03063), session,
227 "recv invalid FRAME[%s], frames=%ld/%ld (r/s)"),
228 buffer, (long)session->frames_received,
229 (long)session->frames_sent);
230 }
231 return 0;
232}
233
234static int on_data_chunk_recv_cb(nghttp2_session *ngh2, uint8_t flags,
235 int32_t stream_id,

Callers

nothing calls this directly

Calls 1

h2_util_frame_printFunction · 0.85

Tested by

no test coverage detected