mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
Merge pull request #693 from Icinga/retry-epipe
Retry broken pipe errors (`EPIPE`)
This commit is contained in:
commit
cda7bbab3c
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue