Add missing connection error handling
This commit is contained in:
parent
cd53bd81bf
commit
b7d1610141
|
@ -4698,7 +4698,12 @@ int nghttp2_session_on_ping_received(nghttp2_session *session,
|
|||
rv = nghttp2_session_add_ping(session, NGHTTP2_FLAG_ACK,
|
||||
frame->ping.opaque_data);
|
||||
if (rv != 0) {
|
||||
return rv;
|
||||
if (nghttp2_is_fatal(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
return session_handle_invalid_connection(session, frame,
|
||||
NGHTTP2_ERR_INTERNAL, NULL);
|
||||
}
|
||||
}
|
||||
return session_call_on_frame_received(session, frame);
|
||||
|
|
Loading…
Reference in New Issue