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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/quic/reliable_quic_stream_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/reliable_quic_stream.h" 5 #include "net/quic/reliable_quic_stream.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/quic/iovector.h" 8 #include "net/quic/iovector.h"
9 #include "net/quic/quic_flow_controller.h" 9 #include "net/quic/quic_flow_controller.h"
10 #include "net/quic/quic_session.h" 10 #include "net/quic/quic_session.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 fin_buffered_(false), 122 fin_buffered_(false),
123 fin_sent_(false), 123 fin_sent_(false),
124 rst_sent_(false), 124 rst_sent_(false),
125 is_server_(session_->is_server()), 125 is_server_(session_->is_server()),
126 flow_controller_( 126 flow_controller_(
127 id_, 127 id_,
128 is_server_, 128 is_server_,
129 session_->config()->peer_initial_flow_control_window_bytes(), 129 session_->config()->peer_initial_flow_control_window_bytes(),
130 session_->connection()->max_flow_control_receive_window_bytes(), 130 session_->connection()->max_flow_control_receive_window_bytes(),
131 session_->connection()->max_flow_control_receive_window_bytes()) { 131 session_->connection()->max_flow_control_receive_window_bytes()) {
132 if (session_->connection()->version() < QUIC_VERSION_17) {
133 flow_controller_.Disable();
134 }
132 } 135 }
133 136
134 ReliableQuicStream::~ReliableQuicStream() { 137 ReliableQuicStream::~ReliableQuicStream() {
135 } 138 }
136 139
137 bool ReliableQuicStream::WillAcceptStreamFrame( 140 bool ReliableQuicStream::WillAcceptStreamFrame(
138 const QuicStreamFrame& frame) const { 141 const QuicStreamFrame& frame) const {
139 if (read_side_closed_) { 142 if (read_side_closed_) {
140 return true; 143 return true;
141 } 144 }
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 if (flow_controller_.UpdateSendWindowOffset(frame.byte_offset)) { 427 if (flow_controller_.UpdateSendWindowOffset(frame.byte_offset)) {
425 // We can write again! 428 // We can write again!
426 // TODO(rjshade): This does not respect priorities (e.g. multiple 429 // TODO(rjshade): This does not respect priorities (e.g. multiple
427 // outstanding POSTs are unblocked on arrival of 430 // outstanding POSTs are unblocked on arrival of
428 // SHLO with initial window). 431 // SHLO with initial window).
429 OnCanWrite(); 432 OnCanWrite();
430 } 433 }
431 } 434 }
432 435
433 } // namespace net 436 } // namespace net
OLDNEW
« 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