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

Unified Diff: net/quic/core/congestion_control/tcp_cubic_sender_base.cc

Issue 2393933002: Move the logic from SendAlgorithmInterface::RetransmissionDelay() into QuicSentPacketManager, becau… (Closed)
Patch Set: Created 4 years, 2 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/core/congestion_control/tcp_cubic_sender_base.cc
diff --git a/net/quic/core/congestion_control/tcp_cubic_sender_base.cc b/net/quic/core/congestion_control/tcp_cubic_sender_base.cc
index a94b662d8fd2c6cc2059a88eef11ebf308a93889..7a3641e115916c88a468f16652230b4c03138f3c 100644
--- a/net/quic/core/congestion_control/tcp_cubic_sender_base.cc
+++ b/net/quic/core/congestion_control/tcp_cubic_sender_base.cc
@@ -238,13 +238,6 @@ QuicBandwidth TcpCubicSenderBase::BandwidthEstimate() const {
return QuicBandwidth::FromBytesAndTimeDelta(GetCongestionWindow(), srtt);
}
-QuicTime::Delta TcpCubicSenderBase::RetransmissionDelay() const {
- if (rtt_stats_->smoothed_rtt().IsZero()) {
- return QuicTime::Delta::Zero();
- }
- return rtt_stats_->smoothed_rtt() + 4 * rtt_stats_->mean_deviation();
-}
-
bool TcpCubicSenderBase::InSlowStart() const {
return GetCongestionWindow() < GetSlowStartThreshold();
}

Powered by Google App Engine
This is Rietveld 408576698