diff --git a/pkg/retry/retry.go b/pkg/retry/retry.go index 32d3a615e..46be1213f 100644 --- a/pkg/retry/retry.go +++ b/pkg/retry/retry.go @@ -7,6 +7,7 @@ import ( "github.com/icinga/icingadb/pkg/backoff" "github.com/lib/pq" "github.com/pkg/errors" + "io" "net" "strings" "syscall" @@ -136,6 +137,9 @@ func Retryable(err error) bool { if errors.Is(err, syscall.EPIPE) { return true } + if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) { + return true + } if errors.Is(err, driver.ErrBadConn) { return true