Fixed bug on_ctrl_recv_callback not called for RST_STREAM

This commit is contained in:
Tatsuhiro Tsujikawa 2012-06-04 23:44:18 +09:00
parent 245c7ff1b3
commit d654ad0cc6
1 changed files with 2 additions and 0 deletions

View File

@ -1815,6 +1815,8 @@ int spdylay_session_on_rst_stream_received(spdylay_session *session,
if(!spdylay_session_check_version(session, frame->rst_stream.hd.version)) {
return 0;
}
spdylay_session_call_on_ctrl_frame_received(session, SPDYLAY_RST_STREAM,
frame);
if(session->server &&
!spdylay_session_is_my_stream_id(session, frame->rst_stream.stream_id) &&
frame->rst_stream.status_code == SPDYLAY_CANCEL) {