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 |
||
---|---|---|
.. | ||
check.go | ||
check_test.go | ||
dedupe.go | ||
dedupe_test.go | ||
listdirsorted_test.go | ||
lsjson.go | ||
multithread.go | ||
multithread_test.go | ||
operations.go | ||
operations_internal_test.go | ||
operations_test.go | ||
rc.go | ||
rc_test.go | ||
reopen.go | ||
reopen_test.go |