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 c00965b commit 080f6b0Copy full SHA for 080f6b0
storage/invoke.go
@@ -174,9 +174,9 @@ func ShouldRetry(err error) bool {
174
// We don't want to retry io.EOF errors, since these can indicate normal
175
// functioning terminations such as internally in the case of Reader and
176
// externally in the case of iterator methods. However, the linked bug
177
- // requires us to retry EOFs that it causes. We can distinguish
178
- // EOFs caused by the bug because they are not wrapped correctly.
179
- if !errors.Is(err, io.EOF) && strings.Contains(err.Error(), "EOF") {
+ // requires us to retry the EOFs that it causes, which should be wrapped
+ // in net or url errors.
+ if errors.Is(err, io.EOF) {
180
return true
181
}
182
case *net.DNSError:
0 commit comments