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

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

Issue 2510873002: Deprecate FLAGS_quic_limit_cubic_cwnd_increase. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | net/quic/core/congestion_control/cubic_bytes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/congestion_control/cubic.cc
diff --git a/net/quic/core/congestion_control/cubic.cc b/net/quic/core/congestion_control/cubic.cc
index 89a347e7e8edd6edf05fcd0f08a17bd459e84148..385e160cd851183a2c57a4ea476a4ec8f0403b80 100644
--- a/net/quic/core/congestion_control/cubic.cc
+++ b/net/quic/core/congestion_control/cubic.cc
@@ -150,13 +150,11 @@ QuicPacketCount Cubic::CongestionWindowAfterAck(
QuicPacketCount target_congestion_window =
origin_point_congestion_window_ - delta_congestion_window;
- if (FLAGS_quic_limit_cubic_cwnd_increase) {
- // Limit the CWND increase to half the acked packets rounded up to the
- // nearest packet.
- target_congestion_window =
- min(target_congestion_window,
- current_congestion_window + (epoch_packets_count_ + 1) / 2);
- }
+ // Limit the CWND increase to half the acked packets rounded up to the
+ // nearest packet.
+ target_congestion_window =
+ min(target_congestion_window,
+ current_congestion_window + (epoch_packets_count_ + 1) / 2);
DCHECK_LT(0u, estimated_tcp_congestion_window_);
// With dynamic beta/alpha based on number of active streams, it is possible
« no previous file with comments | « no previous file | net/quic/core/congestion_control/cubic_bytes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698