Skip to content

Commit

Permalink
Merge pull request #693 from Icinga/retry-epipe
Browse files Browse the repository at this point in the history
Retry broken pipe errors (`EPIPE`)
  • Loading branch information
julianbrost authored Mar 19, 2024
2 parents f405279 + 2586c62 commit cda7bba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cda7bba

Please sign in to comment.