Handle error from nghttp2_session_push_back_deferred_data

This commit is contained in:
Tatsuhiro Tsujikawa 2013-11-12 10:44:04 +09:00
parent 1e5f4cadde
commit 5044b59453
1 changed files with 3 additions and 1 deletions

View File

@ -2678,7 +2678,9 @@ static int session_on_connection_window_update_received
if(session->remote_window_size > 0) { if(session->remote_window_size > 0) {
rv = nghttp2_session_push_back_deferred_data(session); rv = nghttp2_session_push_back_deferred_data(session);
if(rv != 0) { if(rv != 0) {
return 0; /* FATAL */
assert(rv < NGHTTP2_ERR_FATAL);
return rv;
} }
} }
return nghttp2_session_call_on_frame_received(session, frame); return nghttp2_session_call_on_frame_received(session, frame);