Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: net/spdy/spdy_session.cc

Issue 10829066: Fix a SPDY crash bug where a CHECK() is hit because a cancelled stream is considered active by the … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add SPDY/3 test. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index c372b87ba821f8e34a95ea21957d08850f5c8639..6d375740e1f790c50aa33165dbe92954941f9be5 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -766,6 +766,10 @@ void SpdySession::ResetStream(SpdyStreamId stream_id,
DeleteStream(stream_id, ERR_SPDY_PROTOCOL_ERROR);
}
+void SpdySession::DeleteCreatedStream(SpdyStream* stream) {
+ created_streams_.erase(scoped_refptr<SpdyStream>(stream));
+}
+
bool SpdySession::IsStreamActive(SpdyStreamId stream_id) const {
return ContainsKey(active_streams_, stream_id);
}

Powered by Google App Engine
This is Rietveld 408576698