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

Side by Side Diff: net/quic/core/congestion_control/bbr_sender.cc

Issue 2889713002: Landing Recent QUIC changes until Fri May 12 18:23:26 2017 +0000 (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | net/quic/core/congestion_control/bbr_sender_test.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/core/congestion_control/bbr_sender.h" 5 #include "net/quic/core/congestion_control/bbr_sender.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "net/quic/core/congestion_control/rtt_stats.h" 10 #include "net/quic/core/congestion_control/rtt_stats.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 QuicByteCount BbrSender::GetSlowStartThreshold() const { 214 QuicByteCount BbrSender::GetSlowStartThreshold() const {
215 return 0; 215 return 0;
216 } 216 }
217 217
218 bool BbrSender::InRecovery() const { 218 bool BbrSender::InRecovery() const {
219 return recovery_state_ != NOT_IN_RECOVERY; 219 return recovery_state_ != NOT_IN_RECOVERY;
220 } 220 }
221 221
222 void BbrSender::SetFromConfig(const QuicConfig& config, 222 void BbrSender::SetFromConfig(const QuicConfig& config,
223 Perspective perspective) { 223 Perspective perspective) {
224 if (FLAGS_quic_reloadable_flag_quic_allow_2_rtt_bbr_startup) { 224 if (config.HasClientRequestedIndependentOption(k1RTT, perspective)) {
225 QUIC_FLAG_COUNT(quic_reloadable_flag_quic_allow_2_rtt_bbr_startup); 225 num_startup_rtts_ = 1;
226 if (config.HasClientRequestedIndependentOption(k1RTT, perspective)) { 226 }
227 num_startup_rtts_ = 1; 227 if (config.HasClientRequestedIndependentOption(k2RTT, perspective)) {
228 } 228 num_startup_rtts_ = 2;
229 if (config.HasClientRequestedIndependentOption(k2RTT, perspective)) {
230 num_startup_rtts_ = 2;
231 }
232 } 229 }
233 } 230 }
234 231
235 void BbrSender::ResumeConnectionState( 232 void BbrSender::ResumeConnectionState(
236 const CachedNetworkParameters& cached_network_params, 233 const CachedNetworkParameters& cached_network_params,
237 bool max_bandwidth_resumption) { 234 bool max_bandwidth_resumption) {
238 if (!FLAGS_quic_reloadable_flag_quic_bbr_bandwidth_resumption) { 235 if (!FLAGS_quic_reloadable_flag_quic_bbr_bandwidth_resumption) {
239 return; 236 return;
240 } 237 }
241 238
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() 823 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue()
827 << std::endl; 824 << std::endl;
828 825
829 os << "Last sample is app-limited: " 826 os << "Last sample is app-limited: "
830 << (state.last_sample_is_app_limited ? "yes" : "no"); 827 << (state.last_sample_is_app_limited ? "yes" : "no");
831 828
832 return os; 829 return os;
833 } 830 }
834 831
835 } // namespace net 832 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/congestion_control/bbr_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698