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

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

Issue 1983183002: Landing Recent QUIC changes until 5/14/2016 02:25:25 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "first try to fix link error for win_clang build" Created 4 years, 7 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_bytes.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender_bytes.cc b/net/quic/congestion_control/tcp_cubic_sender_bytes.cc
index 7b0341d720f8acfa4ea693613cc1ee48671fe84d..6280bb71938793531840535f10f6ee1ae068faa6 100644
--- a/net/quic/congestion_control/tcp_cubic_sender_bytes.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender_bytes.cc
@@ -55,10 +55,12 @@ void TcpCubicSenderBytes::SetCongestionWindowFromBandwidthAndRtt(
// Limit new CWND if needed.
congestion_window_ =
max(min_congestion_window_,
- min(new_congestion_window, kMaxCongestionWindow * kDefaultTCPMSS));
+ min(new_congestion_window,
+ kMaxResumptionCongestionWindow * kDefaultTCPMSS));
} else {
congestion_window_ =
- max(min(new_congestion_window, kMaxCongestionWindow * kDefaultTCPMSS),
+ max(min(new_congestion_window,
+ kMaxResumptionCongestionWindow * kDefaultTCPMSS),
kMinCongestionWindowForBandwidthResumption * kDefaultTCPMSS);
}
}
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender_base.h ('k') | net/quic/congestion_control/tcp_cubic_sender_bytes_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698