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

Unified Diff: net/quic/quic_sent_packet_manager.cc

Issue 1812633002: No longer limit QUIC's max CWND to 200 packets. Protected by quic_dont_limit_max_cwnd. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116768420
Patch Set: Created 4 years, 9 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
« net/quic/quic_flags.cc ('K') | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_sent_packet_manager.cc
diff --git a/net/quic/quic_sent_packet_manager.cc b/net/quic/quic_sent_packet_manager.cc
index 2bdd1965a4b2fb79f106f3a3f92825331ac1e60d..c0369975f0f2f4ce5f2be6020b09332b7fce343c 100644
--- a/net/quic/quic_sent_packet_manager.cc
+++ b/net/quic/quic_sent_packet_manager.cc
@@ -173,7 +173,11 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
static_cast<QuicByteCount>(config.ReceivedSocketReceiveBuffer()));
QuicByteCount max_cwnd_bytes = static_cast<QuicByteCount>(
receive_buffer_bytes_ * kConservativeReceiveBufferFraction);
- max_cwnd_bytes = min(max_cwnd_bytes, kMaxCongestionWindow * kDefaultTCPMSS);
+ if (!FLAGS_quic_dont_limit_max_cwnd) {
+ // TODO(ianswett): Remove kMaxCongestionWindow once deprecated.
+ max_cwnd_bytes =
+ min(max_cwnd_bytes, kMaxCongestionWindow * kDefaultTCPMSS);
+ }
send_algorithm_->SetMaxCongestionWindow(max_cwnd_bytes);
}
send_algorithm_->SetFromConfig(config, perspective_);
« net/quic/quic_flags.cc ('K') | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698