diff --git a/src/server.rs b/src/server.rs index 7346734..ce851bd 100644 --- a/src/server.rs +++ b/src/server.rs @@ -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); }