fix(rustproxy-routing): reduce hot-path allocations in routing, metrics, and proxy protocol handling

This commit is contained in:
2026-03-16 09:38:55 +00:00
parent 246b44913e
commit a1b8d40011
7 changed files with 116 additions and 51 deletions

View File

@@ -1,5 +1,14 @@
# Changelog
## 2026-03-16 - 25.11.9 - fix(rustproxy-routing)
reduce hot-path allocations in routing, metrics, and proxy protocol handling
- skip HTTP header map construction unless a route on the current port uses header matching
- reuse computed client IP strings during HTTP route matching to avoid redundant allocations
- optimize per-route and per-IP metric updates with get-first lookups to avoid unnecessary String creation on existing entries
- replace heap-allocated PROXY protocol peek and discard buffers with stack-allocated buffers in the TCP listener
- improve domain matcher case-insensitive wildcard checks while preserving glob fallback behavior
## 2026-03-16 - 25.11.8 - fix(rustproxy-http)
prevent premature idle timeouts during streamed HTTP responses and ensure TLS close_notify is sent on dropped connections