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

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

Issue 125253004: Simplify RTO interaction between the QUIC sent packet manager and the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 c1828005e583614edd541b1dace98c52898c11e1..0cca50487228962b55613feb432f90c35fe338ea 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -277,9 +277,12 @@ void TcpCubicSender::CongestionAvoidance(QuicPacketSequenceNumber ack) {
}
}
-void TcpCubicSender::OnRetransmissionTimeout() {
- cubic_.Reset();
- congestion_window_ = kMinimumCongestionWindow;
+void TcpCubicSender::OnRetransmissionTimeout(bool packets_retransmitted) {
+ bytes_in_flight_ = 0;
+ if (packets_retransmitted) {
+ cubic_.Reset();
+ congestion_window_ = kMinimumCongestionWindow;
+ }
}
void TcpCubicSender::AckAccounting(QuicTime::Delta rtt) {
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | net/quic/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698