We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 684dbe0 commit 4537d9bCopy full SHA for 4537d9b
fs/operations/reopen.go
@@ -7,6 +7,7 @@ import (
7
8
"github.com/pkg/errors"
9
"github.com/rclone/rclone/fs"
10
+ "github.com/rclone/rclone/fs/fserrors"
11
)
12
13
// reOpen is a wrapper for an object reader which reopens the stream on error
@@ -104,7 +105,7 @@ func (h *reOpen) Read(p []byte) (n int, err error) {
104
105
h.err = err
106
}
107
h.read += int64(n)
- if err != nil && err != io.EOF {
108
+ if err != nil && err != io.EOF && !fserrors.IsNoLowLevelRetryError(err) {
109
// close underlying stream
110
h.opened = false
111
_ = h.rc.Close()
0 commit comments