156c372cd7
Before this change, when using --cutoff-mode=soft and --max-duration rclone deadlocked when the cutoff limit was reached. This was because the sync objects Pipe became full and nothing was emptying it because the cutoff was reached. This changes the context for putting items into the pipe to be the one that gets cancelled when the cutoff is reached. See: https://forum.rclone.org/t/sync-command-hanging-using-cutoff-mode-soft-with-max-duration-time-flags/40866 |
||
---|---|---|
.. | ||
pipe.go | ||
pipe_test.go | ||
rc.go | ||
rc_test.go | ||
sync.go | ||
sync_test.go |