mirror of
https://github.com/Icinga/icingadb.git
synced 2026-05-28 04:35:54 -04:00
shouldRetry(): retry on driver.ErrBadConn as well
This commit is contained in:
parent
f5003e6119
commit
e092e6de68
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ func shouldRetry(err error) bool {
|
|||
if sys, ok := underlying.(*os.SyscallError); ok {
|
||||
underlying = sys.Err
|
||||
}
|
||||
if underlying == syscall.ECONNREFUSED {
|
||||
switch underlying {
|
||||
case driver.ErrBadConn, syscall.ECONNREFUSED:
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue