2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-27 04:32:40 +00:00
restic/internal/backend/rclone
Michael Eischer 3cd927d180 rclone: Give rclone time to finish before closing stdin pipe
Calling `Close()` on the rclone backend sometimes failed during test
execution with 'signal: Broken pipe'. The stdio connection closed both
the stdin and stdout file descriptors at the same moment, therefore
giving rclone no chance to properly send any final http2 data frames.

Now the stdin connection to rclone is closed first and will only be
forcefully closed after a timeout. In case rclone exits before the
timeout then the stdio connection will be closed normally.
2020-07-26 00:29:25 +02:00
..
backend_test.go rclone: Respect bandwith limits 2018-05-22 20:48:17 +02:00
backend.go rclone: Give rclone time to finish before closing stdin pipe 2020-07-26 00:29:25 +02:00
config_test.go rclone: Rework backend option parsing 2019-03-02 10:36:42 +01:00
config.go rclone: Rework backend option parsing 2019-03-02 10:36:42 +01:00
internal_test.go rclone: Add test for pipe handling when rclone exits 2020-07-26 00:29:25 +02:00
stdio_conn.go rclone: Give rclone time to finish before closing stdin pipe 2020-07-26 00:29:25 +02:00