rclone/fs/sync
Nick Craig-Wood 4ac875a811 sync: fix --max-duration and --cutoff-mode soft
Before this change using --max-duration and --cutoff-mode soft would
work like --cutoff-mode hard.

This bug was introduced in this commit which made transfers be
cancelable - before that transfers couldn't be canceled.

122a47fba6 accounting: Allow transfers to be canceled with context #3257

This change adds the timeout to the input context for reading files
rather than the transfer context so the files transfers themselves
aren't canceled if --cutoff-mode soft is in action.

This also adds a test for cutoff mode soft and max duration which was
missing.

See: https://forum.rclone.org/t/max-duration-and-retries-not-working-correctly/27738
2022-06-16 22:13:50 +01:00
..
pipe.go Remove github.com/pkg/errors and replace with std library version 2021-11-07 11:53:30 +00:00
pipe_test.go sync: implement --order-by xxx,mixed 2020-03-16 15:50:04 +00:00
rc.go docs: punctuation cleanup 2021-10-20 22:56:19 +02:00
rc_test.go 🧪 fstest: fix time tests on Windows and add convenience methods to check local and remote fs with precision 2021-11-09 11:43:36 +00:00
sync.go sync: fix --max-duration and --cutoff-mode soft 2022-06-16 22:13:50 +01:00
sync_test.go sync: fix --max-duration and --cutoff-mode soft 2022-06-16 22:13:50 +01:00