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

Unified Diff: net/quic/quic_session.cc

Issue 1138443003: Land Recent QUIC Changes until 05/13/2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile error fixes Created 5 years, 7 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_sent_packet_manager_test.cc ('k') | net/quic/quic_utils_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 0be72ebad37f302c9a99cfb2ec2f0fd321c524b0..57ee40e7053f22b34be79d86545acee1e622e933 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -134,7 +134,7 @@ QuicSession::~QuicSession() {
}
void QuicSession::OnStreamFrames(const vector<QuicStreamFrame>& frames) {
- for (size_t i = 0; i < frames.size(); ++i) {
+ for (size_t i = 0; i < frames.size() && connection_->connected(); ++i) {
// TODO(rch) deal with the error case of stream id 0.
const QuicStreamFrame& frame = frames[i];
QuicStreamId stream_id = frame.stream_id;
@@ -153,6 +153,9 @@ void QuicSession::OnStreamFrames(const vector<QuicStreamFrame>& frames) {
continue;
}
stream->OnStreamFrame(frames[i]);
+ if (!connection_->connected()) {
+ return;
+ }
}
}
« no previous file with comments | « net/quic/quic_sent_packet_manager_test.cc ('k') | net/quic/quic_utils_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698