2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 03:18:55 +00:00
restic/internal/backend/rclone
Michael Eischer f3d964a8c1 rclone: treat "file already closed" as command startup error
Since #3940 the rclone backend returns the commands exit code if it
fails to start. The list of expected errors was missing the "file
already closed"-error which can occur if the http test request first
learns about the closed pipe to rclone before noticing the canceled
context.

Go internally makes sure that a file descriptor is unusable once it was
closed, thus this cannot have unintended side effects (like accidentally
reading from the wrong file due to a reused file descriptor).
2022-12-02 20:46:02 +01:00
..
backend_test.go all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
backend.go rclone: treat "file already closed" as command startup error 2022-12-02 20:46:02 +01:00
config_test.go rclone: add timeout option and documentation 2021-11-07 17:49:21 +01:00
config.go rclone: Fix timeout calculation 2021-11-07 17:49:33 +01:00
internal_test.go rclone: return rclone error instead of canceled context 2022-10-08 20:15:24 +02:00
stdio_conn.go rclone: Better field names for stdio conn 2020-07-26 00:29:25 +02:00