commit d5afcf9e34044e5b7bb1ae5553b6f2f98450b7d2
Author: Nick Craig-Wood nick@craig-wood.com
Date: Mon Mar 6 17:49:50 2023 +0000
crypt: try not to return "unexpected EOF" error
Before this change the code wasn't taking into account the error
io.ErrUnexpectedEOF that io.ReadFull can return properly. Sometimes
that error was being returned instead of a more specific and useful
error.
To fix this, io.ReadFull was replaced with the simpler
readers.ReadFill which is much easier to use correctly.
Nick, this recent change turned the normal one-liner EOFs I receive whenever a streamed file is paused for too long
I don't think anything has changed in the way Rclone works in that regard. It seems as if it's simply outputting more info now. These errors have always shown in the console, but never had any impact on the streams. Treat this as an observation rather than a bug report
crypt: fix reading 0 length files
In an earlier patch
d5afcf9e34044e5b crypt: try not to return "unexpected EOF" error
This introduced a bug for 0 length files which this fixes which only
manifests if the io.Reader returns data and EOF which not all readers
do.
This was failing in the integration tests.
This commit seems to have reverted back to the former way of only reporting the first retry in the console