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

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

Issue 1467453006: Deprecate FLAGS_reset_cubic_epoch_when_app_limited. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@107709890
Patch Set: Created 5 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
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 81da996628cfd4422c28a87a25b824f827ececc8..08819813bee8b7331562279ef3505cecbc0ddf34 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -310,13 +310,10 @@ bool TcpCubicSender::InRecovery() const {
void TcpCubicSender::MaybeIncreaseCwnd(QuicPacketNumber acked_packet_number,
QuicByteCount bytes_in_flight) {
LOG_IF(DFATAL, InRecovery()) << "Never increase the CWND during recovery.";
+ // Do not increase the congestion window unless the sender is close to using
+ // the current window.
if (!IsCwndLimited(bytes_in_flight)) {
- // Do not increase the congestion window unless the sender is close to using
- // the current window.
- if (FLAGS_reset_cubic_epoch_when_app_limited ||
- FLAGS_shift_quic_cubic_epoch_when_app_limited) {
- cubic_.OnApplicationLimited();
- }
+ cubic_.OnApplicationLimited();
return;
}
if (congestion_window_ >= max_tcp_congestion_window_) {

Powered by Google App Engine
This is Rietveld 408576698