mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-23 05:46:12 +03:00
net/spdy: 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.
This commit is contained in:
parent
80d7fe42c1
commit
e3d8609bb0
@ -2704,7 +2704,7 @@ void SpdySession::OnRstStream(spdy::SpdyStreamId stream_id,
|
|||||||
auto it = active_streams_.find(stream_id);
|
auto it = active_streams_.find(stream_id);
|
||||||
if (it == active_streams_.end()) {
|
if (it == active_streams_.end()) {
|
||||||
// NOTE: it may just be that the stream was cancelled.
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2927,7 +2927,7 @@ void SpdySession::OnWindowUpdate(spdy::SpdyStreamId stream_id,
|
|||||||
|
|
||||||
if (it == active_streams_.end()) {
|
if (it == active_streams_.end()) {
|
||||||
// NOTE: it may just be that the stream was cancelled.
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2972,7 +2972,7 @@ void SpdySession::OnHeaders(spdy::SpdyStreamId stream_id,
|
|||||||
auto it = active_streams_.find(stream_id);
|
auto it = active_streams_.find(stream_id);
|
||||||
if (it == active_streams_.end()) {
|
if (it == active_streams_.end()) {
|
||||||
// NOTE: it may just be that the stream was cancelled.
|
// 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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user