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-h2): a relayed stream shares one send window between its frontend and backend connections #1755
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
fix(mux-h2): keep one stream send window per connection
fix(mux-h2): keep one stream send window per connection (sozu-proxy#1757