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
fix(mux): a frontend hang-up spins the session loop to its iteration budget #1774
After a client hangs up an HTTP/2 connection, Mux::ready_inner (lib/src/protocol/mux/mod.rs) can run its inner loop to MAX_LOOP_ITERATIONS before closing the session, incrementing http.infinite_loop.error.
The frontend HUP is handled only on entry to ready_inner. When the close is delayed for a pending flush and that flush completes inside the loop, the frontend's remaining readiness is HUP alone, which the loop's exit check counts as work although nothing in the loop acts on it: the loop iterates without progress until the budget is exhausted.
Expected: the loop handles the frontend HUP once the flush is done (closing the session), and does not count HUP as work it can progress.
Activity
fix(mux): stop spinning the session loop on a frontend hang-up
fix(mux): close on a reset, an incomplete half-closed request or hand…
fix(mux): stop spinning the session loop on a frontend hang-up (sozu-…
fix(mux): deliver the whole response to a half-closed client (#1789)