1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-04-18 17:24:03 +03:00

Use QUIC_V1_ALIAS to force BBRv2 instead of BBRv1

Summary: As title.

Reviewed By: hanidamlaj

Differential Revision: D72092260

fbshipit-source-id: b3a39424a7dcfca6eea49de04535a9fbab962c91
This commit is contained in:
Joseph Beshay 2025-04-03 10:12:59 -07:00 committed by Facebook GitHub Bot
parent 5be22208e3
commit 623433e833
2 changed files with 4 additions and 1 deletions

View File

@ -377,6 +377,8 @@ enum class QuicVersion : uint32_t {
// broken.
MVFST = 0xfaceb002,
QUIC_V1 = 0x00000001,
// QUIC_V1_ALIAS is used to default to BBRv2 instead of BBRv1 in
// QuicServerWorker.cpp
QUIC_V1_ALIAS = 0xfaceb003,
QUIC_V1_ALIAS2 = 0xfaceb004,
// MVFST_EXPERIMENTAL is used to default to BBRv2 instead of BBRv1 in

View File

@ -693,7 +693,8 @@ QuicServerTransport::Ptr QuicServerWorker::makeTransport(
trans->setTransportStatsCallback(statsCallback_.get()); // ok if nullptr
auto transportSettingsCopy = transportSettings_;
if (quicVersion == QuicVersion::MVFST_EXPERIMENTAL) {
if (quicVersion == QuicVersion::MVFST_EXPERIMENTAL ||
quicVersion == QuicVersion::QUIC_V1_ALIAS) {
// Override BBRv1 with BBRv2
if (transportSettingsCopy.defaultCongestionController ==
CongestionControlType::BBR) {