1
mirror of https://github.com/rclone/rclone synced 2024-12-02 11:53:45 +01:00
rclone/backend/b2
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
..
api b2: Implement server side copy for files > 5GB - fixes #3991 2020-06-05 13:27:53 +01:00
b2_internal_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
b2_test.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
b2.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
upload.go b2: cancel in progress multipart uploads and copies on rclone exit #4300 2020-06-25 15:22:53 +01:00