rclone/fs/fserrors
Nick Craig-Wood 4013bc4a4c Fix excessive retries missing --max-duration timeout - fixes #4504
This change checks the context whenever rclone might retry, and
doesn't retry if the current context has an error.

This fixes the pathological behaviour of `--max-duration` refusing to
exit because all the context deadline exceeded errors were being
retried.

This unfortunately meant changing the shouldRetry logic in every
backend and doing a lot of context propagation.

See: https://forum.rclone.org/t/add-flag-to-exit-immediately-when-max-duration-reached/22723
2021-03-13 09:25:44 +00:00
..
enospc_error.go vfs: support synchronous cache space recovery upon ENOSPC 2020-08-25 21:12:06 +01:00
enospc_error_notsupported.go vfs: support synchronous cache space recovery upon ENOSPC 2020-08-25 21:12:06 +01:00
error.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
error_test.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
retriable_errors.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
retriable_errors_windows.go errors: add WSAECONNREFUSED and more to the list of retriable Windows errors 2020-06-17 10:46:22 +01:00