Commit 8b84da7
Fix handle_write peer-disconnect detection on Windows
On Windows, ProactorEventLoop may raise plain OSError with
winerror=10054 (WSAECONNRESET) or 10053 (WSAECONNABORTED) instead
of ConnectionResetError. Use ConnectionError base class plus
winerror check for robust cross-platform detection.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 49ee6d4 commit 8b84da7
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
231 | 237 | | |
232 | 238 | | |
233 | 239 | | |
| |||
0 commit comments