backend: increase request progress timeout to 5 minutes

Apparently, 2 minutes are too short in some cases and can result in
canceled List requests.
This commit is contained in:
Michael Eischer 2024-06-01 18:54:01 +02:00
parent 6bf3d4859f
commit db2398f35b
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)