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

Unified Diff: net/quic/reliable_quic_stream.cc

Issue 242583002: Disable QuicFlowController for QUIC versions < QUIC_VERSION_17 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/reliable_quic_stream.cc
diff --git a/net/quic/reliable_quic_stream.cc b/net/quic/reliable_quic_stream.cc
index a30ae57a4f9b30fb68fd226c48cc1d741441c148..31261bbf145129f86fdd21676377a21350840e01 100644
--- a/net/quic/reliable_quic_stream.cc
+++ b/net/quic/reliable_quic_stream.cc
@@ -129,6 +129,9 @@ ReliableQuicStream::ReliableQuicStream(QuicStreamId id, QuicSession* session)
session_->config()->peer_initial_flow_control_window_bytes(),
session_->connection()->max_flow_control_receive_window_bytes(),
session_->connection()->max_flow_control_receive_window_bytes()) {
+ if (session_->connection()->version() < QUIC_VERSION_17) {
+ flow_controller_.Disable();
+ }
}
ReliableQuicStream::~ReliableQuicStream() {
« no previous file with comments | « no previous file | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698