You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
H2: refuse new streams before an RST_STREAM flood limit instead of closing the connection #1797
When an HTTP/2 connection crosses an RST_STREAM flood limit (h2_max_rst_stream_per_window, or the floor of h2_max_rst_stream_abusive_lifetime), Sōzu sends GOAWAY(ENHANCE_YOUR_CALM) and closes the connection. Every stream in flight on it is lost, including requests that were being served normally. Clients that cancel many requests, such as gRPC clients with short deadlines, lose whole connections even though most of their traffic is legitimate.
Proposal: add a soft threshold below these two limits. Past it, refuse new client streams with RST_STREAM(REFUSED_STREAM), which RFC 9113 §8.7 makes safe to retry, and keep serving the streams already open. Accept new streams again once the counters fall back below the threshold. The limits themselves still send GOAWAY(ENHANCE_YOUR_CALM), unchanged. A refusal must not feed the flood counters, and the threshold should be configurable, with a way to disable it.
Activity
fix(mux-h2): reject reused client stream ids and charge soft refusals…
docs(mux-h2): document the request-trailer race on a refused stream
feat(mux-h2): refuse new streams before the pre-response RST_STREAM c…