Repository navigation
v0.1.2
Released 2026-11-02.
A stability and hardening pass: every request phase is now bounded and the hot
path is cheaper. Drop-in upgrade — no config changes, one new flag.
Resilience
- In-flight requests are capped (
--max-concurrent, default 64); extra requests queue instead of growing memory, and SSE streams never hold a permit - Connections are capped too, and excess is closed on accept;
EMFILE/ENFILEnow backs off a second and keeps serving instead of exiting, withLimitNOFILE=16384in the systemd unit - Every phase has a timeout: 30s to finish request headers, 120s for a trickled body, and a silent upstream mid-body aborts instead of hanging the handler
- Hot-reload failures back off 1s → 30s instead of re-decrypting a corrupt store every second, and decryption runs off the async workers
Performance
streamdetection answers at the firststream: truewithout parsing the whole body (8MB request: ~100ms → 584ns)- SSE terminator scanning is SIMD-accelerated (~67× less CPU on the scan path), proxy lookup is lock-free, and audit writes are batched
Hardening
- Route config is validated at save time: header values that would 500 every request, and
retry_on_statusoutside 400–599 (which could replay POSTs), are rejected up front - Upstream error logs no longer include the request URL, which could carry the upstream key with
--auth query
UX
route addno longer invents a gateway address when the gateway is down; 401s explain the hot-reload window;route rmsays what it breaks; hints are platform-correct