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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender_packets.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_packets.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender_packets.cc b/net/quic/congestion_control/tcp_cubic_sender_packets.cc
index 0467963c487f528dd7cc3380b09dcb36eb83a67e..91918b1833364128981defc7e6b42b715daa877f 100644
--- a/net/quic/congestion_control/tcp_cubic_sender_packets.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender_packets.cc
@@ -53,11 +53,13 @@ void TcpCubicSenderPackets::SetCongestionWindowFromBandwidthAndRtt(
bandwidth.ToBytesPerPeriod(rtt) / kDefaultTCPMSS;
if (FLAGS_quic_no_lower_bw_resumption_limit) {
// Limit new CWND to be in the range [1, kMaxCongestionWindow].
- congestion_window_ = max(min_congestion_window_,
- min(new_congestion_window, kMaxCongestionWindow));
+ congestion_window_ =
+ max(min_congestion_window_,
+ min(new_congestion_window, kMaxResumptionCongestionWindow));
} else {
- congestion_window_ = max(min(new_congestion_window, kMaxCongestionWindow),
- kMinCongestionWindowForBandwidthResumption);
+ congestion_window_ =
+ max(min(new_congestion_window, kMaxResumptionCongestionWindow),
+ kMinCongestionWindowForBandwidthResumption);
}
}

Powered by Google App Engine
This is Rietveld 408576698