Use PROTOCOL_ERROR against DATA sent to idle stream

This commit is contained in:
Tatsuhiro Tsujikawa 2015-07-23 02:02:27 +09:00
parent f6a8c8d078
commit aa012f7a58
1 changed files with 1 additions and 1 deletions

View File

@ -4672,7 +4672,7 @@ static int session_on_data_received_fail_fast(nghttp2_session *session) {
if (!stream) {
if (session_detect_idle_stream(session, stream_id)) {
failure_reason = "DATA: stream in idle";
error_code = NGHTTP2_STREAM_CLOSED;
error_code = NGHTTP2_PROTOCOL_ERROR;
goto fail;
}
return NGHTTP2_ERR_IGN_PAYLOAD;