Skip to content

Commit

Permalink
add more timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
moogacs committed Sep 13, 2022
1 parent ee37c7f commit 55e1cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ func (r *reader) read(ctx context.Context, offset int64, conn *Conn) (int64, err
var size int64
var bytes int64

const safetyTimeout = 10 * time.Second
const safetyTimeout = 60 * time.Second
deadline := time.Now().Add(safetyTimeout)
conn.SetReadDeadline(deadline)

Expand Down

0 comments on commit 55e1cec

Please sign in to comment.