make timeout for slow requests configurable

This commit is contained in:
Michael Eischer
2024-08-25 21:52:34 +02:00
parent 6eece31dc3
commit 64d628bd75
4 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
Enhancement: Make timeout for stuck requests customizable
Restic monitors connections to the backend to detect stuck requests. If a request
does not return any data within five minutes, restic assumes the request is stuck and
retries it. However, for large repositories it sometimes takes longer than that to
collect a list of all files, causing the following error:
`List(data) returned error, retrying after 1s: [...]: request timeout`
It is now possible to increase the timeout using the `--stuck-request-timeout` option.
https://github.com/restic/restic/issues/4970
https://github.com/restic/restic/pull/5014