mirror of
https://github.com/rclone/rclone.git
synced 2025-01-29 21:04:23 +02:00
4ac875a811
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. 122a47fba655704b 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