Skip to content

fix(mux-h2): a relayed stream shares one send window between its frontend and backend connections #1755

Closed

Description

@FlorentinDUBOIS

A stream relayed from an H2 frontend to an H2 backend keeps a single send window (Stream.window), shared by both connections. RFC 9113 §6.9 flow control is per connection: the client's and the backend's SETTINGS_INITIAL_WINDOW_SIZE and WINDOW_UPDATE frames each govern their own hop.

Consequences:

  • A client and a backend that both advertise SETTINGS_INITIAL_WINDOW_SIZE = 2^31-1 are each within the §6.9.2 limit, but the backend's delta is added to the window the client already sized, overflows it, and the backend connection is closed with GOAWAY(PROTOCOL_ERROR). The request fails.
  • The backend leg starts at the frontend's window instead of the backend's advertised initial window, and each peer's WINDOW_UPDATE credits the other leg as well, so Sōzu can send more DATA than a peer granted.

Expected: one send window per connection the stream crosses, the backend leg sized from the backend's SETTINGS_INITIAL_WINDOW_SIZE when the stream is opened on it. H1 legs are unaffected.

Activity

  1. added a commit that references this issue on Oct 1, 2026
    fccc0e3
  2. added a commit that references this issue on Oct 2, 2026
    fac8214
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