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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 15074007: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for windows Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/congestion_control/hybrid_slow_start.cc ('k') | net/quic/crypto/cert_compressor.h » ('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/congestion_control/tcp_cubic_sender.h" 5 #include "net/quic/congestion_control/tcp_cubic_sender.h"
6 6
7 namespace net { 7 namespace net {
8 8
9 namespace { 9 namespace {
10 // Constants based on TCP defaults. 10 // Constants based on TCP defaults.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 221 }
222 // Hybrid start triggers when cwnd is larger than some threshold. 222 // Hybrid start triggers when cwnd is larger than some threshold.
223 if (congestion_window_ <= slowstart_threshold_ && 223 if (congestion_window_ <= slowstart_threshold_ &&
224 congestion_window_ >= kHybridStartLowWindow) { 224 congestion_window_ >= kHybridStartLowWindow) {
225 if (!hybrid_slow_start_.started()) { 225 if (!hybrid_slow_start_.started()) {
226 // Time to start the hybrid slow start. 226 // Time to start the hybrid slow start.
227 hybrid_slow_start_.Reset(end_sequence_number_); 227 hybrid_slow_start_.Reset(end_sequence_number_);
228 } 228 }
229 hybrid_slow_start_.Update(rtt, delay_min_); 229 hybrid_slow_start_.Update(rtt, delay_min_);
230 if (hybrid_slow_start_.Exit()) { 230 if (hybrid_slow_start_.Exit()) {
231 DLOG(INFO) << "Set slowstart threshold:" << congestion_window_;
231 slowstart_threshold_ = congestion_window_; 232 slowstart_threshold_ = congestion_window_;
232 } 233 }
233 } 234 }
234 } 235 }
235 236
236 } // namespace net 237 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/hybrid_slow_start.cc ('k') | net/quic/crypto/cert_compressor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698