Compare commits

...

1 commit

Author SHA1 Message Date
Matthew Slipper
3c65a6ebab fix: keep tunnel connections alive during hijacked WebSocket relays
serveOneHTTPConn returned as soon as a handler hijacked the connection
(StateHijacked closes the one-conn listener), which let callers' deferred
conn.Close() calls tear down the connection while the WebSocket relay was
still running. Wait for the hijacking handler to finish before returning,
and add regression tests for WebSocket upgrades through CONNECT and SOCKS5
tunnels plus the hijack-lifetime contract itself.
2026-07-08 13:53:13 -06:00
2 changed files with 232 additions and 1 deletions