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

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

Issue 12806002: Land Recent QUIC Changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor comment fix Created 7 years, 9 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
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/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
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
OLDNEW
« no previous file with comments | « net/quic/congestion_control/hybrid_slow_start.h ('k') | net/quic/congestion_control/quic_congestion_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698