Skip to content

Commit

Permalink
Update file_handle.go (#860)
Browse files Browse the repository at this point in the history
(cherry picked from commit b836d2a)
  • Loading branch information
frrad authored and anacrolix committed Nov 1, 2023
1 parent c14123f commit 59ec9d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/file_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func (me fileHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse
// can demand up to 16MiB at a time, so this gets tricky. For now, I'll restore the old
// behaviour from before 2a7352a, which nobody reported problems with.
n, readErr = io.ReadFull(r, resp.Data)
if readErr == io.ErrUnexpectedEOF {
readErr = nil
}
} else {
n, readErr = r.Read(resp.Data)
if readErr == io.EOF {
Expand Down

0 comments on commit 59ec9d6

Please sign in to comment.