Repository navigation
Commit e5fad04
The server called unwrap() right after corrupting the client's TLS
stream, which sent its own close_notify to a client that was about to
close its socket. That turned the client's close into a TCP reset, and
on Windows a reset discards the client's close_notify that is still
unread, so the server failed with WinError 10054 (or 10053).
Wait for the client's close_notify with recv() before calling unwrap().
A ragged EOF without close_notify still makes unwrap() raise SSLError,
so the test keeps catching the gh-98078 regression.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 16f209b commit e5fad04
2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- Lib/test/test_asyncio
- Misc/NEWS.d/next/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
1103 | 1111 | | |
1104 | 1112 | | |
1105 | 1113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments