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

Unified Diff: net/quic/congestion_control/tcp_cubic_bytes_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_bytes_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_bytes_sender.cc b/net/quic/congestion_control/tcp_cubic_bytes_sender.cc
index c34d448db1b402ec795a5f9764d70743cd85ecef..0dd8169f9bdbf578cbedac8408295ab098c7bc6f 100644
--- a/net/quic/congestion_control/tcp_cubic_bytes_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_bytes_sender.cc
@@ -295,12 +295,10 @@ void TcpCubicBytesSender::MaybeIncreaseCwnd(
QuicByteCount acked_bytes,
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) {
- cubic_.OnApplicationLimited();
- }
+ cubic_.OnApplicationLimited();
return;
}
if (congestion_window_ >= max_congestion_window_) {
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_cubic_bytes_sender_test.cc » ('j') | net/tools/quic/quic_server_bin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698