diff --git a/pkg/retry/retry.go b/pkg/retry/retry.go index 509d1263..4c0d25d8 100644 --- a/pkg/retry/retry.go +++ b/pkg/retry/retry.go @@ -118,6 +118,10 @@ func Retryable(err error) bool { // which do not include ECONNREFUSED, so we check this ourselves. return true } + if errors.Is(err, syscall.ECONNRESET) { + // ECONNRESET is treated as a temporary error by Go only if it comes from calling accept. + return true + } return false }