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

Unified Diff: net/quic/quic_session.cc

Issue 23464033: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix valgrind error Created 7 years, 3 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 | « net/quic/quic_protocol.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index db7203dff71b342bb2567fa1f77c5c86014dc265..5b7dc388f74daba14d332d5b92539433f4171787 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -428,12 +428,13 @@ ReliableQuicStream* QuicSession::GetIncomingReliableStream(
connection()->SendConnectionClose(QUIC_INVALID_STREAM_ID);
return NULL;
}
- if (largest_peer_created_stream_id_ != 0) {
- for (QuicStreamId id = largest_peer_created_stream_id_ + 2;
- id < stream_id;
- id += 2) {
- implicitly_created_streams_.insert(id);
- }
+ if (largest_peer_created_stream_id_ == 0) {
+ largest_peer_created_stream_id_= 1;
+ }
+ for (QuicStreamId id = largest_peer_created_stream_id_ + 2;
+ id < stream_id;
+ id += 2) {
+ implicitly_created_streams_.insert(id);
}
largest_peer_created_stream_id_ = stream_id;
}
« no previous file with comments | « net/quic/quic_protocol.cc ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698