Skip to content

Commit 19e3eff

Browse files
authored
Retry ECONNRESET errors (#1415)
We see this often as "connection reset by peer" errors. Not a lot we can do about this beyond retrying.
1 parent 3ba4c51 commit 19e3eff

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
@@ -59,7 +59,7 @@ type Backoff = retry.Backoff
5959
var defaultRetryPredicate retry.Predicate = func(err error) bool {
6060
// Various failure modes here, as we're often reading from and writing to
6161
// the network.
62-
if retry.IsTemporary(err) || errors.Is(err, io.ErrUnexpectedEOF) || errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) {
62+
if retry.IsTemporary(err) || errors.Is(err, io.ErrUnexpectedEOF) || errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) || errors.Is(err, syscall.ECONNRESET) {
6363
logs.Warn.Printf("retrying %v", err)
6464
return true
6565
}

0 commit comments

Comments
 (0)