OLD | NEW |
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 Loading... |
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 |
OLD | NEW |