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

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

Issue 242593002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Use uint32 instead of int Created 6 years, 8 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 2753172784ae0bc036da3a85a2ad0c441911e601..c453dba8640d9d576f687a1df4bd5e6d3f237f31 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -269,12 +269,12 @@ void TcpCubicSender::OnRetransmissionTimeout(bool packets_retransmitted) {
largest_sent_at_last_cutback_ = 0;
if (packets_retransmitted) {
cubic_.Reset();
+ hybrid_slow_start_.Restart();
congestion_window_ = kMinimumCongestionWindow;
}
}
void TcpCubicSender::UpdateRtt(QuicTime::Delta rtt) {
- // Hybrid start triggers when cwnd is larger than some threshold.
if (InSlowStart() &&
hybrid_slow_start_.ShouldExitSlowStart(rtt_stats_, congestion_window_)) {
slowstart_threshold_ = congestion_window_;
« no previous file with comments | « net/quic/congestion_control/hybrid_slow_start_test.cc ('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