Commit Graph
3 Commits
Author SHA1 Message Date
breken ba5c55f1a9 fix(proxy): keep bytes after PROXY UNKNOWN header
When a trusted upstream sends "PROXY UNKNOWN\r\n", parseProxyProtocolHeader
returned the raw connection and discarded whatever followed the header in
the same read. The TLS ClientHello usually arrives in that same segment, so
it was lost, the SNI extraction failed on the truncated stream, and the
connection was dropped. The 5s parsing read deadline was also left set on
this path.

Wrap the connection so the remaining buffered bytes are replayed ahead of
the socket, and clear the read deadline, matching the other header
branches.
2026-09-13 19:28:18 -07:00
Owen 9038239bbe Accept proxy protocol from other nodes 2025-09-29 21:56:15 -07:00
Owen 7040a9436e Add proxy protocol 2025-08-26 22:26:01 -07:00