Skip to content

Commit ed5c185

Browse files
authored
Retry net.ErrClosed (#1637)
1 parent 2435320 commit ed5c185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/v1/remote/options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ type Backoff = retry.Backoff
6060
var defaultRetryPredicate retry.Predicate = func(err error) bool {
6161
// Various failure modes here, as we're often reading from and writing to
6262
// the network.
63-
if retry.IsTemporary(err) || errors.Is(err, io.ErrUnexpectedEOF) || errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) || errors.Is(err, syscall.ECONNRESET) {
63+
if retry.IsTemporary(err) || errors.Is(err, io.ErrUnexpectedEOF) || errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) || errors.Is(err, syscall.ECONNRESET) || errors.Is(err, net.ErrClosed) {
6464
logs.Warn.Printf("retrying %v", err)
6565
return true
6666
}

0 commit comments

Comments
 (0)