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

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

Issue 2403193003: Landing Recent QUIC changes until 9:41 AM, Oct 10, 2016 UTC-7 (Closed)
Patch Set: git cl format 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_bytes.cc
diff --git a/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc b/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
index a974246f64d70d5f11381e5318f0779f24ba30f5..131aef1619cacb692fda9e97266bb5a1a8ea55ca 100644
--- a/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
+++ b/net/quic/core/congestion_control/tcp_cubic_sender_bytes.cc
@@ -51,18 +51,11 @@ void TcpCubicSenderBytes::SetCongestionWindowFromBandwidthAndRtt(
QuicBandwidth bandwidth,
QuicTime::Delta rtt) {
QuicByteCount new_congestion_window = bandwidth.ToBytesPerPeriod(rtt);
- if (FLAGS_quic_no_lower_bw_resumption_limit) {
- // Limit new CWND if needed.
- congestion_window_ =
- max(min_congestion_window_,
- min(new_congestion_window,
- kMaxResumptionCongestionWindow * kDefaultTCPMSS));
- } else {
- congestion_window_ =
- max(min(new_congestion_window,
- kMaxResumptionCongestionWindow * kDefaultTCPMSS),
- kMinCongestionWindowForBandwidthResumption * kDefaultTCPMSS);
- }
+ // Limit new CWND if needed.
+ congestion_window_ =
+ max(min_congestion_window_,
+ min(new_congestion_window,
+ kMaxResumptionCongestionWindow * kDefaultTCPMSS));
}
void TcpCubicSenderBytes::SetCongestionWindowInPackets(

Powered by Google App Engine
This is Rietveld 408576698