Treat TLS timeout as an offline error for #50

This commit is contained in:
David Dworken 2022-12-10 09:43:02 -08:00
parent a481701cda
commit 233ca7ecd3
No known key found for this signature in database

View File

@ -945,7 +945,8 @@ func IsOfflineError(err error) bool {
strings.Contains(err.Error(), ": status_code=502") ||
strings.Contains(err.Error(), ": status_code=503") ||
strings.Contains(err.Error(), ": i/o timeout") ||
strings.Contains(err.Error(), "connect: operation timed out")
strings.Contains(err.Error(), "connect: operation timed out") ||
strings.Contains(err.Error(), "net/http: TLS handshake timeout")
}
func ReliableDbCreate(db *gorm.DB, entry interface{}) error {