OSupdate: add more network error handling

This commit is contained in:
Thomas Farstrike
2025-12-24 12:13:45 +01:00
parent a4cab65f36
commit a4391d76ad
@@ -478,8 +478,9 @@ class UpdateDownloader:
# -104 = ECONNRESET (connection reset by peer)
# -110 = ETIMEDOUT (connection timed out)
# -118 = EHOSTUNREACH (no route to host)
# -202 = DNS/connection error (network not ready)
network_indicators = [
'-113', '-104', '-110', '-118', # Error codes
'-113', '-104', '-110', '-118', '-202', # Error codes
'econnaborted', 'econnreset', 'etimedout', 'ehostunreach', # Error names
'connection reset', 'connection aborted', # Error messages
'broken pipe', 'network unreachable', 'host unreachable',