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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 366863002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/congestion_control/tcp_cubic_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
index a9ca66c0cfb124e79916b50f93dd1bada6e64c7f..95fa6cccc3be38795477a0e957dcb612c5f97b41 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -196,6 +196,10 @@ QuicBandwidth TcpCubicSender::BandwidthEstimate() const {
rtt_stats_->SmoothedRtt());
}
+bool TcpCubicSender::HasReliableBandwidthEstimate() const {
+ return !InSlowStart() && !InRecovery();
+}
+
QuicTime::Delta TcpCubicSender::RetransmissionDelay() const {
if (!rtt_stats_->HasUpdates()) {
return QuicTime::Delta::Zero();

Powered by Google App Engine
This is Rietveld 408576698