Skip to content

Commit abbd8b7

Browse files
Comments
1 parent 1a39a64 commit abbd8b7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

internal_filesystem/lib/mpos/net/download_manager.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ def is_network_error(exception):
220220
error_repr = repr(exception).lower()
221221

222222
# Common network error codes and messages
223-
# -113 = ECONNABORTED (connection aborted)
224-
# -104 = ECONNRESET (connection reset by peer)
225-
# -110 = ETIMEDOUT (connection timed out)
226-
# -118 = EHOSTUNREACH (no route to host)
223+
# -113 = ECONNABORTED (connection aborted) - actually 103
224+
# -104 = ECONNRESET (connection reset by peer) - correct
225+
# -110 = ETIMEDOUT (connection timed out) - correct
226+
# -118 = EHOSTUNREACH (no route to host) - actually 113
227227
# -202 = DNS/connection error (network not ready)
228+
#
229+
# See lvgl_micropython/lib/esp-idf/components/lwip/lwip/src/include/lwip/errno.h
228230
network_indicators = [
229231
'-113', '-104', '-110', '-118', '-202', # Error codes
230232
'econnaborted', 'econnreset', 'etimedout', 'ehostunreach', # Error names

0 commit comments

Comments
 (0)