Files
zeekayandHanzo Dev 2c76945f3c fix(test): terminate the websocket handshake headers with CRLF CRLF
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]>
2026-08-01 23:29:19 -07:00
..