Skip to content

Commit

Permalink
Retry ECONNRESET errors (#1415)
Browse files Browse the repository at this point in the history
We see this often as "connection reset by peer" errors. Not a lot we can
do about this beyond retrying.
  • Loading branch information
jonjohnsonjr committed Jul 22, 2022
1 parent 3ba4c51 commit 19e3eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/v1/remote/options.go
Expand Up @@ -59,7 +59,7 @@ type Backoff = retry.Backoff
var defaultRetryPredicate retry.Predicate = func(err error) bool {
// Various failure modes here, as we're often reading from and writing to
// the network.
if retry.IsTemporary(err) || errors.Is(err, io.ErrUnexpectedEOF) || errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) {
if retry.IsTemporary(err) || errors.Is(err, io.ErrUnexpectedEOF) || errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) || errors.Is(err, syscall.ECONNRESET) {
logs.Warn.Printf("retrying %v", err)
return true
}
Expand Down

0 comments on commit 19e3eff

Please sign in to comment.