Skip to content

Commit 5b63029

Browse files
authored
Merge pull request #621 from cloudsbit/bugfix/readAt-hang
fix: readAt() occasional hang in concurrent reads
2 parents fb0652c + 067046a commit 5b63029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ func (f *File) readAt(b []byte, off int64) (int, error) {
11741174
ID: id,
11751175
Handle: f.handle,
11761176
Offset: uint64(offset),
1177-
Len: uint32(chunkSize),
1177+
Len: uint32(len(rb)),
11781178
})
11791179

11801180
select {

0 commit comments

Comments
 (0)