rclone/fs/operations
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
..
check.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
check_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
dedupe.go cmd/dedupe: make largest directory primary to minimize data moved (#3648) 2021-03-11 20:40:29 +03:00
dedupe_test.go dedupe: add --by-hash to dedupe on hash not file name - fixes #1674 2020-12-02 16:52:12 +00:00
listdirsorted_test.go filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
lsjson.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
multithread.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
multithread_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
operations.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
operations_internal_test.go fs: deglobalise the config #4685 2020-11-26 16:40:12 +00:00
operations_test.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
rc.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
rc_test.go fs: add context.Context to fs.GetModifyWindow #3257 #4685 2020-11-09 18:05:54 +00:00
reopen.go fs: add UploadHeaders, DownloadHeaders to Update/Put/Open options 2020-04-23 11:07:21 +01:00
reopen_test.go doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00