rclone/backend/sharefile
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 Revert "sharefile: fix backend due to API swapping integers for strings" 2020-11-25 20:52:57 +00:00
generate_tzdata.go New backend for Citrix Sharefile - Fixes #1543 2019-09-30 12:28:33 +01:00
sharefile.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
sharefile_test.go New backend for Citrix Sharefile - Fixes #1543 2019-09-30 12:28:33 +01:00
tzdata_vfsdata.go New backend for Citrix Sharefile - Fixes #1543 2019-09-30 12:28:33 +01:00
update-timezone.sh New backend for Citrix Sharefile - Fixes #1543 2019-09-30 12:28:33 +01:00
upload.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00