From 8f791f334071cb567ce1c8876ee08eeb3ee908b9 Mon Sep 17 00:00:00 2001 From: Andrew Gunnerson Date: Mon, 17 Aug 2026 19:21:40 -0400 Subject: [PATCH] rcbridge: Disable HTTP/2 Equivalent to rclone's --disable-http2 global option. There are unfixed issues with golang's HTTP client that result in low throughput. For now, HTTP/2 will just be disabled without any configuration option to reenable it since it does not provide much benefit for RSAF's use case anyway. Upstream: https://github.com/rclone/rclone/issues/8379 Fixes: #326 Signed-off-by: Andrew Gunnerson --- rcbridge/rcbridge.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rcbridge/rcbridge.go b/rcbridge/rcbridge.go index 204c0f2..289a28f 100644 --- a/rcbridge/rcbridge.go +++ b/rcbridge/rcbridge.go @@ -241,6 +241,10 @@ func RbInit() { // agent is just "rclone/". ci.UserAgent = fmt.Sprintf("rclone/%s", fs.VersionTag) + // Disable HTTP/2 to avoid low throughput due to golang's HTTP client. + // https://github.com/rclone/rclone/issues/8379 + ci.DisableHTTP2 = true + RbReloadCerts() }