| 212 | } |
| 213 | |
| 214 | static 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 | |
| 234 | static int on_data_chunk_recv_cb(nghttp2_session *ngh2, uint8_t flags, |
| 235 | int32_t stream_id, |
nothing calls this directly
no test coverage detected