OLD | NEW |
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 cycle_current_offset_(0), | 91 cycle_current_offset_(0), |
92 last_cycle_start_(QuicTime::Zero()), | 92 last_cycle_start_(QuicTime::Zero()), |
93 is_at_full_bandwidth_(false), | 93 is_at_full_bandwidth_(false), |
94 rounds_without_bandwidth_gain_(0), | 94 rounds_without_bandwidth_gain_(0), |
95 bandwidth_at_last_round_(QuicBandwidth::Zero()), | 95 bandwidth_at_last_round_(QuicBandwidth::Zero()), |
96 exiting_quiescence_(false), | 96 exiting_quiescence_(false), |
97 exit_probe_rtt_at_(QuicTime::Zero()), | 97 exit_probe_rtt_at_(QuicTime::Zero()), |
98 probe_rtt_round_passed_(false), | 98 probe_rtt_round_passed_(false), |
99 last_sample_is_app_limited_(false), | 99 last_sample_is_app_limited_(false), |
100 recovery_state_(NOT_IN_RECOVERY), | 100 recovery_state_(NOT_IN_RECOVERY), |
101 end_recovery_at_(0) { | 101 end_recovery_at_(0), |
| 102 recovery_window_(max_congestion_window_) { |
102 EnterStartupMode(); | 103 EnterStartupMode(); |
103 } | 104 } |
104 | 105 |
105 BbrSender::~BbrSender() {} | 106 BbrSender::~BbrSender() {} |
106 | 107 |
107 bool BbrSender::InSlowStart() const { | 108 bool BbrSender::InSlowStart() const { |
108 return mode_ == STARTUP; | 109 return mode_ == STARTUP; |
109 } | 110 } |
110 | 111 |
111 bool BbrSender::OnPacketSent(QuicTime sent_time, | 112 bool BbrSender::OnPacketSent(QuicTime sent_time, |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() | 556 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() |
556 << std::endl; | 557 << std::endl; |
557 | 558 |
558 os << "Last sample is app-limited: " | 559 os << "Last sample is app-limited: " |
559 << (state.last_sample_is_app_limited ? "yes" : "no"); | 560 << (state.last_sample_is_app_limited ? "yes" : "no"); |
560 | 561 |
561 return os; | 562 return os; |
562 } | 563 } |
563 | 564 |
564 } // namespace net | 565 } // namespace net |
OLD | NEW |