mirror of
https://github.com/rclone/rclone.git
synced 2026-11-07 10:12:56 -05:00
A ranged read through the VFS opens the object at offset 0 and then seeks, so the first RETR is closed before anything was read. Egnyte answers that close with 425 instead of 426. 425 was not masked, so ftpReadCloser.Close quit the connection and returned an error. The VFS then retried and closed the same reader again; the second Close got nil from the already closed response, put the connection that had been quit back in the pool and returned its token a second time. Later operations failed with "use of closed network connection" and serve s3 returned InternalError. Now a second Close does nothing, a connection is never pooled after Quit, and 425 is masked only when nothing was read, so a transfer cut after data was read is still an error.