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

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

Issue 2005853002: Ignore the peer's receive buffer in QUIC and instead set the max CWND to 2000 packets. Protected b… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@122420070
Patch Set: Created 4 years, 7 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/congestion_control/send_algorithm_interface.cc
diff --git a/net/quic/congestion_control/send_algorithm_interface.cc b/net/quic/congestion_control/send_algorithm_interface.cc
index 83de14f237763176f1e2fd8f9246bfeb5121740c..821beb755b7e9d4f8ebb71e8e69a0b9d06a078fe 100644
--- a/net/quic/congestion_control/send_algorithm_interface.cc
+++ b/net/quic/congestion_control/send_algorithm_interface.cc
@@ -20,9 +20,12 @@ SendAlgorithmInterface* SendAlgorithmInterface::Create(
CongestionControlType congestion_control_type,
QuicConnectionStats* stats,
QuicPacketCount initial_congestion_window) {
- const QuicPacketCount max_congestion_window =
+ QuicPacketCount max_congestion_window =
(kDefaultSocketReceiveBuffer * kConservativeReceiveBufferFraction) /
kDefaultTCPMSS;
+ if (FLAGS_quic_ignore_srbf) {
+ max_congestion_window = kDefaultMaxCongestionWindowPackets;
+ }
switch (congestion_control_type) {
case kCubic:
return new TcpCubicSenderPackets(
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/tcp_cubic_sender_bytes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698