Skip to content

fix(mux): a frontend hang-up spins the session loop to its iteration budget #1774

Closed

Description

@FlorentinDUBOIS

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

  1. added a commit that references this issue on Oct 1, 2026
    c3a4eb2
  2. added a commit that references this issue on Oct 2, 2026
    8357a31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions