Skip to content

Commit

Permalink
Retry broken pipe errors (EPIPE)
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Mar 14, 2024
1 parent 1d505b3 commit 2586c62
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 2586c62

Please sign in to comment.