| 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/core/congestion_control/hybrid_slow_start.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 using std::max; | 9 using std::max; |
| 10 using std::min; | 10 using std::min; |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 // Note(pwestin): the magic clamping numbers come from the original code in | 14 // Note(pwestin): the magic clamping numbers come from the original code in |
| 15 // tcp_cubic.c. | 15 // tcp_cubic.c. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 hystart_found_ = DELAY; | 98 hystart_found_ = DELAY; |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 // Exit from slow start if the cwnd is greater than 16 and | 101 // Exit from slow start if the cwnd is greater than 16 and |
| 102 // increasing delay is found. | 102 // increasing delay is found. |
| 103 return congestion_window >= kHybridStartLowWindow && | 103 return congestion_window >= kHybridStartLowWindow && |
| 104 hystart_found_ != NOT_FOUND; | 104 hystart_found_ != NOT_FOUND; |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace net | 107 } // namespace net |
| OLD | NEW |