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/hybrid_slow_start.h" | 5 #include "net/quic/congestion_control/hybrid_slow_start.h" |
6 | 6 |
7 namespace net { | 7 namespace net { |
8 | 8 |
9 // Note(pwestin): the magic clamping numbers come from the original code in | 9 // Note(pwestin): the magic clamping numbers come from the original code in |
10 // tcp_cubic.c. | 10 // tcp_cubic.c. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 bool HybridSlowStart::Exit() { | 99 bool HybridSlowStart::Exit() { |
100 // If either one of the two conditions are met we exit from slow start | 100 // If either one of the two conditions are met we exit from slow start |
101 // immediately. | 101 // immediately. |
102 if (found_ack_train_ || found_delay_) { | 102 if (found_ack_train_ || found_delay_) { |
103 return true; | 103 return true; |
104 } | 104 } |
105 return false; | 105 return false; |
106 } | 106 } |
107 | 107 |
| 108 QuicTime::Delta HybridSlowStart::SmoothedRtt() { |
| 109 // TODO(satyamshekhar): Calculate and return smooth average of rtt over time. |
| 110 return current_rtt_; |
| 111 } |
| 112 |
108 } // namespace net | 113 } // namespace net |
OLD | NEW |