Skip to content

Commit

Permalink
Use BBR congestion by default
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Dec 11, 2021
1 parent 492af31 commit 76babcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ async fn main() -> Result<()> {
let mut server_config = quinn::ServerConfig::with_crypto(Arc::new(server_crypto));
Arc::get_mut(&mut server_config.transport)
.unwrap()
.max_concurrent_uni_streams(0_u8.into());
.max_concurrent_uni_streams(0_u8.into())
.congestion_controller_factory(Arc::new(quinn::congestion::BbrConfig::default()));

if options.stateless_retry {
server_config.use_retry(true);
}
Expand Down

0 comments on commit 76babcb

Please sign in to comment.