From db2398f35ba05d08edeb0cf7a4d340d394ac46a5 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 1 Jun 2024 18:54:01 +0200 Subject: [PATCH] backend: increase request progress timeout to 5 minutes Apparently, 2 minutes are too short in some cases and can result in canceled List requests. --- changelog/unreleased/issue-4627 | 1 + internal/backend/http_transport.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/unreleased/issue-4627 b/changelog/unreleased/issue-4627 index 6f6a00098..e9c66c175 100644 --- a/changelog/unreleased/issue-4627 +++ b/changelog/unreleased/issue-4627 @@ -29,3 +29,4 @@ https://github.com/restic/restic/issues/1523 https://github.com/restic/restic/pull/4520 https://github.com/restic/restic/pull/4800 https://github.com/restic/restic/pull/4784 +https://github.com/restic/restic/pull/4844 diff --git a/internal/backend/http_transport.go b/internal/backend/http_transport.go index 19613e810..5162d3571 100644 --- a/internal/backend/http_transport.go +++ b/internal/backend/http_transport.go @@ -143,7 +143,7 @@ func Transport(opts TransportOptions) (http.RoundTripper, error) { } if feature.Flag.Enabled(feature.BackendErrorRedesign) { - rt = newWatchdogRoundtripper(rt, 120*time.Second, 128*1024) + rt = newWatchdogRoundtripper(rt, 5*time.Minute, 128*1024) } // wrap in the debug round tripper (if active)