Commit Graph
18 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 2eb4090c20 Attempt to cap OOM kills of gerbil under sni load 2026-08-26 09:37:51 -04:00
Marc Schäfer cda6fa6772 feat(cli/proxy): add OTLP timeout flag and make proxy metrics resilient 2026-05-04 00:12:24 +02:00
Marc Schäfer 58415dee7e refactor: remove redundant HTTP client instantiation in getRoute method 2026-04-04 01:44:59 +02:00
Marc Schäfer c3ed355127 Merge branch 'dev' into proxy-perf-improvements 2026-04-04 01:37:09 +02:00
Marc Schäfer e47a57cb4f Enhance metrics tracking in SNIProxy connection handling 2026-04-03 18:15:41 +02:00
Laurence c7d9c72f29 Add HTTP client reuse and buffer pooling for performance
- Add reusable HTTP client with connection pooling for API requests
- Add sync.Pool for 32KB buffers used in connection piping
- Clear buffers before returning to pool to prevent data leakage
- Reduces GC pressure and improves throughput under load
2026-03-13 15:28:04 +00:00
Owen d44aa97f32 Try to fix mem leak 2026-01-26 15:22:08 -08:00
Owen d321a8ba7e Dont require proxy protocol from known hosts 2025-10-14 21:05:30 -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
Owen efce3cb0b2 Sni has no errors now 2025-08-17 10:43:37 -07:00
Owen c970fd5a18 Update to work with multipe endpoints 2025-08-16 22:59:45 -07:00
Owen 09bd02456d Move to post 2025-08-16 22:53:49 -07:00
Owen c24537af36 Fix url 2025-08-16 22:36:03 -07:00
Owen 10958f8c55 Use propper logger 2025-08-14 22:25:38 -07:00
Owen 1df5eb19ff Integrate sni proxy 2025-08-13 15:41:58 -07:00
Owen f71f183886 Add basic proxy 2025-08-12 18:02:34 -07:00