test: synchronize replacement WebSocket handshake (#3891)
The reconnect shutdown regression could fail during cleanup because the replacement client handshake completed and closed before the server application handler recorded it. Wait for explicit server acceptance before returning the replacement socket to the shutdown path. The test retains both close-deadline variants, the two-connection assertion, and reader/ownership cleanup checks. No SDK runtime, dependency, or release metadata changes. Validation: 156 session tests, both targeted variants, Ruff and Pyright pass. The local mypy run reports two identical errors on the unchanged baseline and candidate. Co-authored-by: markstuart-oai <323302876+markstuart-oai@users.noreply.github.com>
M
Mark Stuart committed
b7116e67d72cafde4c3da4226abc6e96dadbfb14
Parent: 3b865af
Committed by GitHub <noreply@github.com>
on 9/18/2026, 12:19:59 AM