Commit 1f4f55f
committed
fix(telegram): add EAFNOSUPPORT to local-socket-failure codes and add regression test
LOCAL_SOCKET_FAILURE_MESSAGE_PATTERN extracts EAFNOSUPPORT from message
text, but LOCAL_SOCKET_FAILURE_ERROR_CODES only contained EADDRNOTAVAIL.
This mismatch meant a message-only EAFNOSUPPORT envelope would have
ctx.codes non-empty without triggering the local-socket-failure guard,
silently blocking the fallback without emitting the diagnostic warn — a
classification gap that changes Telegram retry behavior.
Add EAFNOSUPPORT to LOCAL_SOCKET_FAILURE_ERROR_CODES so the guard and
message parser are aligned, and add a message-only EAFNOSUPPORT
regression test asserting fallback=false and diagnostic warn emitted.
Closes #946201 parent 4d33774 commit 1f4f55f
2 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1365 | 1365 | | |
1366 | 1366 | | |
1367 | 1367 | | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
1368 | 1379 | | |
1369 | 1380 | | |
1370 | 1381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments