Repository navigation
Commit 5dce0b3
test(zero-swift): close after the WebSocket is up in clientCloseSendsTheCode (#64)
URLSession can report a socket open before it has switched the connection
to WebSocket, and a close then ends the TCP connection without a close
frame. Network.framework logs "No connected endpoint handler found" in
exactly the CI run where the server got no close frame (PR #63's second
macOS run), and in no passing one. The test checks that a close sends its
code, so the client now reads a message from the server first. DESIGN.md
records the race: the server sees an abrupt close instead of the code.
Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859
Co-authored-by: Amp <amp@ampcode.com>1 parent 099d959 commit 5dce0b3
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
292 | 294 | | |
293 | 295 | | |
294 | 296 | | |
| |||
0 commit comments