Skip to content

fix(mux): final response after a 1xx stalls behind an H2 frontend #1771

Closed

Description

@FlorentinDUBOIS

With an HTTP/2 frontend in front of an HTTP/1.1 backend, when the backend writes one or more interim 1xx responses and the final response at once, the client receives the interim HEADERS but the final response does not follow; it is only flushed, if at all, when the backend connection closes.

Mux::ready_inner (lib/src/protocol/mux/mod.rs) records whether any backend has pending work before the frontend write. Forwarding an interim response re-arms the backend read (ConnectionH2::handle_1xx_reset) so the bytes already buffered behind it get parsed, but the recorded flag is not refreshed after the frontend write, so the loop can exit with a backend armed and no socket event left to bring it back.

RFC 9110 §15.2, RFC 9113 §8.1: interim responses precede the final response on the same stream.

Activity

  1. added 2 commits that reference this issue on Oct 1, 2026
    2d7f31e
    b929629
  2. added a commit that references this issue on Oct 2, 2026
    4396fe2
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