mirror of
https://github.com/hanzoai/ingress.git
synced 2026-10-26 02:47:15 +00:00
TestWebSocketUpgradeCase failed deterministically, taking 120s to do it:
proxy_websocket_test.go:50: Received unexpected error: bad status
FAIL github.com/hanzoai/ingress/pkg/proxy/fast 120.9s
The stub server wrote its 101 response ending `\r\n\n` — one CRLF and a bare
LF — so the header block was never terminated. HTTP requires CRLF CRLF, and a
parser that waits for it does exactly what was observed: no valid status, then
a wait until the deadline. Both symptoms are the same missing two bytes.
The 120s was the whole cost: five packages in this job were excluded for hanging
and this one sat on top of them.
before: FAIL 120.9s
after: ok 0.9s
Co-authored-by: Hanzo Dev <[email protected]>