Merge pull request #693 from Icinga/retry-epipe

Retry broken pipe errors (`EPIPE`)
This commit is contained in:
Julian Brost 2024-03-19 14:40:34 +01:00 committed by GitHub
commit cda7bbab3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,6 +133,9 @@ func Retryable(err error) bool {
if errors.Is(err, syscall.ENETDOWN) || errors.Is(err, syscall.ENETUNREACH) {
return true
}
if errors.Is(err, syscall.EPIPE) {
return true
}
if errors.Is(err, driver.ErrBadConn) {
return true