Skip to content

Commit

Permalink
fix: add retry for invalid connection. Fixes #13578 (#13580)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuangkun authored Sep 25, 2024
1 parent 554fb0c commit e0ca7ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ func isTransientNetworkErr(err error) bool {
} else if strings.Contains(errorString, "connect: connection refused") {
// If err is connection refused, retry.
return true
} else if strings.Contains(errorString, "invalid connection") {
// If err is invalid connection, retry.
return true
}

return false
Expand Down

0 comments on commit e0ca7ff

Please sign in to comment.