From eecb0bd332a00fba093eb87c00042e1a18d6426b Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Thu, 29 May 2025 00:33:11 +1000 Subject: [PATCH] Enable bbr and early data for http3 Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-downloader/src/remote.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/binstalk-downloader/src/remote.rs b/crates/binstalk-downloader/src/remote.rs index 1ab1391c..4c9b2e39 100644 --- a/crates/binstalk-downloader/src/remote.rs +++ b/crates/binstalk-downloader/src/remote.rs @@ -142,6 +142,13 @@ impl Client { for certificate in certificates { builder = builder.add_root_certificate(certificate.0); } + + builder.tls_early_data(true); + } + + #[cfg(all(reqwest_unstable, feature = "http3"))] + { + builder.http3_congestion_bbr(); } builder