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

Function on_state_invalid

modules/http2/h2_stream.c:323–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323static void on_state_invalid(h2_stream *stream)
324{
325 if (stream->monitor && stream->monitor->on_state_invalid) {
326 stream->monitor->on_state_invalid(stream->monitor->ctx, stream);
327 }
328 /* stream got an event/frame invalid in its state */
329 ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, stream->session->c1,
330 H2_STRM_MSG(stream, "invalid state event"));
331 switch (stream->state) {
332 case H2_SS_OPEN:
333 case H2_SS_RSVD_L:
334 case H2_SS_RSVD_R:
335 case H2_SS_CLOSED_L:
336 case H2_SS_CLOSED_R:
337 h2_stream_rst(stream, H2_ERR_INTERNAL_ERROR);
338 break;
339 default:
340 break;
341 }
342}
343
344static apr_status_t transit(h2_stream *stream, int new_state)
345{

Callers 2

transitFunction · 0.85
h2_stream_dispatchFunction · 0.85

Calls 1

h2_stream_rstFunction · 0.85

Tested by

no test coverage detected