From a4e37a8f8232e29f89fffd6368beed6faea946a2 Mon Sep 17 00:00:00 2001 From: Sebastian Jansson Date: Fri, 4 May 2018 17:11:56 +0200 Subject: [PATCH] Adds ability to disable initial startup mode for BBR. Bug: webrtc:8415 Change-Id: I882248999ae0125f2436dc0f9b32c4bdab1069b2 Reviewed-on: https://webrtc-review.googlesource.com/74590 Reviewed-by: Christoffer Rodbro Commit-Queue: Sebastian Jansson Cr-Commit-Position: refs/heads/master@{#23135} --- modules/congestion_controller/bbr/bbr_network_controller.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/congestion_controller/bbr/bbr_network_controller.cc b/modules/congestion_controller/bbr/bbr_network_controller.cc index 05bc049008..0a9a1f57ff 100644 --- a/modules/congestion_controller/bbr/bbr_network_controller.cc +++ b/modules/congestion_controller/bbr/bbr_network_controller.cc @@ -182,7 +182,11 @@ BbrNetworkController::BbrNetworkController(NetworkControllerConfig config) default_bandwidth_ = config.starting_bandwidth; constraints_ = config.constraints; Reset(); - EnterStartupMode(); + if (config_.num_startup_rtts > 0) { + EnterStartupMode(); + } else { + EnterProbeBandwidthMode(constraints_->at_time); + } } BbrNetworkController::~BbrNetworkController() {}