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

Unified Diff: net/quic/quartc/quartc_factory.cc

Issue 2912393003: Use BBR for Quartc congestion control. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | net/quic/quartc/quartc_factory_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quartc/quartc_factory.cc
diff --git a/net/quic/quartc/quartc_factory.cc b/net/quic/quartc/quartc_factory.cc
index 2591214c4ca5a2b5498efc9e6a0dd52de4a215db..c65a86e1b235d259c4ff51a32fe23ae7b3f7b5ef 100644
--- a/net/quic/quartc/quartc_factory.cc
+++ b/net/quic/quartc/quartc_factory.cc
@@ -112,7 +112,14 @@ std::unique_ptr<QuartcSessionInterface> QuartcFactory::CreateQuartcSession(
: Perspective::IS_CLIENT;
std::unique_ptr<QuicConnection> quic_connection =
CreateQuicConnection(quartc_session_config, perspective);
+ QuicTagVector copt;
+ if (quartc_session_config.congestion_control ==
+ QuartcCongestionControl::kBBR) {
+ copt.push_back(kTBBR);
+ }
QuicConfig quic_config;
+ quic_config.SetConnectionOptionsToSend(copt);
+ quic_config.SetClientConnectionOptions(copt);
return std::unique_ptr<QuartcSessionInterface>(new QuartcSession(
std::move(quic_connection), quic_config,
quartc_session_config.unique_remote_server_id, perspective,
« no previous file with comments | « no previous file | net/quic/quartc/quartc_factory_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698