mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-19 03:26:46 +02:00
Treat TLS timeout as an offline error for #50
This commit is contained in:
parent
a481701cda
commit
233ca7ecd3
@ -945,7 +945,8 @@ func IsOfflineError(err error) bool {
|
|||||||
strings.Contains(err.Error(), ": status_code=502") ||
|
strings.Contains(err.Error(), ": status_code=502") ||
|
||||||
strings.Contains(err.Error(), ": status_code=503") ||
|
strings.Contains(err.Error(), ": status_code=503") ||
|
||||||
strings.Contains(err.Error(), ": i/o timeout") ||
|
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 {
|
func ReliableDbCreate(db *gorm.DB, entry interface{}) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user