From 93f4605f3355e47df65a40ac0f5a317b4301e18e Mon Sep 17 00:00:00 2001 From: klzgrad Date: Wed, 24 Jan 2018 23:50:06 -0500 Subject: [PATCH] h2: Reduce warnings about RST on invalid streams Per RFC 7540#6.4: However, after sending the RST_STREAM, the sending endpoint MUST be prepared to receive and process additional frames sent on the stream that might have been sent by the peer prior to the arrival of the RST_STREAM. --- src/net/spdy/spdy_session.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/spdy/spdy_session.cc b/src/net/spdy/spdy_session.cc index 2054e97c53..53585cc52e 100644 --- a/src/net/spdy/spdy_session.cc +++ b/src/net/spdy/spdy_session.cc @@ -2993,7 +2993,7 @@ void SpdySession::OnRstStream(spdy::SpdyStreamId stream_id, auto it = active_streams_.find(stream_id); if (it == active_streams_.end()) { // NOTE: it may just be that the stream was cancelled. - LOG(WARNING) << "Received RST for invalid stream" << stream_id; + VLOG(1) << "Received RST for invalid stream" << stream_id; return; } @@ -3208,7 +3208,7 @@ void SpdySession::OnWindowUpdate(spdy::SpdyStreamId stream_id, if (it == active_streams_.end()) { // NOTE: it may just be that the stream was cancelled. - LOG(WARNING) << "Received WINDOW_UPDATE for invalid stream " << stream_id; + VLOG(1) << "Received WINDOW_UPDATE for invalid stream " << stream_id; return; } @@ -3261,7 +3261,7 @@ void SpdySession::OnHeaders(spdy::SpdyStreamId stream_id, auto it = active_streams_.find(stream_id); if (it == active_streams_.end()) { // NOTE: it may just be that the stream was cancelled. - LOG(WARNING) << "Received HEADERS for invalid stream " << stream_id; + VLOG(1) << "Received HEADERS for invalid stream " << stream_id; return; }