rclone/fs/filter
Nick Craig-Wood f47893873d fs: fix failed token refresh on mounts created via the rc
Users have noticed that backends created via the rc have been failing
to refresh their tokens with this error:

    Token refresh failed try 1/5: context canceled

This is because the rc server cancels the context used to make the
backend when the request has finished. This same context is used to
refresh the token and the oauth library checks to see if the context
has been cancelled.

This patch creates a new context for the cached backends and copies
the global and filter config into the new context.

See: https://forum.rclone.org/t/google-drive-token-refresh-failed/22283
2021-03-16 16:29:22 +00:00
..
filterflags filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
filter_test.go filter: Make --exclude "dir/" equivalent to --exclude "dir/**" 2021-02-07 17:29:16 +00:00
filter.go fs: fix failed token refresh on mounts created via the rc 2021-03-16 16:29:22 +00:00
glob_test.go Revert "filter: Add BoundedRecursion method" 2019-08-08 14:15:50 +01:00
glob.go Revert "filter: Add BoundedRecursion method" 2019-08-08 14:15:50 +01:00