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

Unified Diff: net/quic/core/quic_sent_packet_manager.cc

Issue 2445983003: Default enable QUIC's Cubic in bytes congestion control implementation. Protected by ENABLED FLAGS… (Closed)
Patch Set: Updated patchset dependency Created 4 years, 2 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
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_sent_packet_manager.cc
diff --git a/net/quic/core/quic_sent_packet_manager.cc b/net/quic/core/quic_sent_packet_manager.cc
index 380448c62fddcf8f7421c277ebb56ce92baaf795..dd5aa54b2808bab7b4fe7907425a210ce6555acb 100644
--- a/net/quic/core/quic_sent_packet_manager.cc
+++ b/net/quic/core/quic_sent_packet_manager.cc
@@ -124,7 +124,11 @@ void QuicSentPacketManager::SetFromConfig(const QuicConfig& config) {
}
} else if (config.HasReceivedConnectionOptions() &&
ContainsQuicTag(config.ReceivedConnectionOptions(), kBYTE)) {
- SetSendAlgorithm(kCubicBytes);
+ if (FLAGS_quic_default_enable_cubic_bytes) {
+ SetSendAlgorithm(kCubic);
+ } else {
+ SetSendAlgorithm(kCubicBytes);
+ }
}
using_pacing_ = !FLAGS_quic_disable_pacing_for_perf_tests;
« no previous file with comments | « net/quic/core/quic_flags_list.h ('k') | net/quic/core/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698