mirror of
https://github.com/rclone/rclone.git
synced 2024-12-29 02:19:08 +01:00
f47893873d
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 |
||
---|---|---|
.. | ||
cache_test.go | ||
cache.go |