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

Unified Diff: net/spdy/spdy_session.cc

Issue 813993002: Fix crash in handling PushStreams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix crash in handling PushStreams Created 5 years, 11 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
« no previous file with comments | « no previous file | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index a2e239e18b6b824c29a5e6b781ac722bccf7bd38..f2fb8b4536c8f691f470f21d2b65c25d2480c657 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -2703,12 +2703,12 @@ bool SpdySession::TryCreatePushStream(SpdyStreamId stream_id,
last_compressed_frame_len_ = 0;
- DeleteExpiredPushedStreams();
PushedStreamMap::iterator inserted_pushed_it =
unclaimed_pushed_streams_.insert(
pushed_it,
std::make_pair(gurl, PushedStreamInfo(stream_id, time_func_())));
DCHECK(inserted_pushed_it != pushed_it);
+ DeleteExpiredPushedStreams();
InsertActivatedStream(stream.Pass());
« no previous file with comments | « no previous file | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698