From aa012f7a58ae535c38ad6de8e359513df3501e93 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 23 Jul 2015 02:02:27 +0900 Subject: [PATCH] Use PROTOCOL_ERROR against DATA sent to idle stream --- lib/nghttp2_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nghttp2_session.c b/lib/nghttp2_session.c index 2f74ca4b..d9a74264 100644 --- a/lib/nghttp2_session.c +++ b/lib/nghttp2_session.c @@ -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;