mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-04 14:22:27 -04:00
Retry ECONNRESET
ECONNRESET is treated as a temporary error by Go only if it comes from calling accept.
This commit is contained in:
parent
6a5db1ca94
commit
444332a682
1 changed files with 4 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ func Retryable(err error) bool {
|
|||
// which do not include ECONNREFUSED, so we check this ourselves.
|
||||
return true
|
||||
}
|
||||
if errors.Is(err, syscall.ECONNRESET) {
|
||||
// ECONNRESET is treated as a temporary error by Go only if it comes from calling accept.
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue