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
Right now, there's a high coupling between front and back sockets in most proxy implementations, especially due to the BufferQueue implementation and the HTTP implementation.
For HTTP/2 it would be useful to separate protocol halves, ie:
server for HTTP 1 front
client for HTTP 1 back
server for HTTP/2 front
client for HTTP/2 back
pipe (should be the same for both front and back)
We could still keep some specific implementations, to keep good performance for the HTTP 1 only proxy, or to reintroduce TCP splicing.
This work would pave the way for easy integration of new protocols, like GRPC or MQTT.
The most pressing issue: separating front and back HTTP 1 implementations.
We will then be able to reuse parts of it for backend connections in the HTTP/2 proxy.
Closed by #1209 — feat(h2): HTTP/2 support via unified Mux session layer.
The Mux session layer fully decouples frontend and backend protocol handlers. The legacy BufferQueue-style coupling between front and back sockets is gone: each stream owns its own pair of Kawa<Checkout> buffers (stream.front / stream.back), and frontend/backend connections are independent Connection enum values that can advance their state machine independently. This enables the H2↔H1 mixed traffic case discussed at the time, where a single H2 frontend stream multiplexes onto distinct H1 backends.
Activity
Geal commentedon Oct 19, 2018
done.
The configuration now uses 16393 as default buffer size, since HTTP/2 requires a minimal frame size of 16384, with 9 more bytes for the header
FlorentinDUBOIS commentedon Apr 27, 2026
Closed by #1209 — feat(h2): HTTP/2 support via unified Mux session layer.
The Mux session layer fully decouples frontend and backend protocol handlers. The legacy
BufferQueue-style coupling between front and back sockets is gone: each stream owns its own pair ofKawa<Checkout>buffers (stream.front/stream.back), and frontend/backend connections are independentConnectionenum values that can advance their state machine independently. This enables the H2↔H1 mixed traffic case discussed at the time, where a single H2 frontend stream multiplexes onto distinct H1 backends.