mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
4013bc4a4c
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 |
||
---|---|---|
.. | ||
enospc_error_notsupported.go | ||
enospc_error.go | ||
error_test.go | ||
error.go | ||
retriable_errors_windows.go | ||
retriable_errors.go |