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
Replace sessions with mux and transport sessions #858
In the spirit of the HTTP2 milestone, we want to split the functioning of current sessions (who pass the traffic from front socket to back socket) into:
transport sessions (TCP)
mux (for multiplexing) sessions, which entails:
an HTTP "server" (HTTP1 or H2) on the front side
one or several HTTP "clients" (HTTP1 or H2) on the backend side (this is multiplexing)
routing and multiplexing logic
Update — 2026-04-24
Implemented on feat/h2-mux (PR #1209). The old Http<Front> protocol was replaced by a unified Mux<Front, L> session layer under lib/src/protocol/mux/ (~18k LOC across 13 files):
This refactoring makes the state machine of HTTP and HTTPS sessions responsible for handling the backends and for passing through the traffic.
The multiplexing logic would be best implemented by adding a new State to the HTTP and HTTPS state machine. This new state could be called MuxHttp and would handle the splitting of HTTP2 traffic in several streams, and doing the passthrough and load balancing to several backends.
Closed by #1209 — feat(h2): HTTP/2 support via unified Mux session layer.
The Mux layer replaces the old Http<Front> protocol with a unified session that handles all four protocol combinations (H1↔H1, H1↔H2, H2↔H1, H2↔H2). Per-stream Kawa buffers decouple frontend and backend state — front and back sockets are no longer coupled through a shared BufferQueue. The original mux_v1 design from @Edemolis with @hcaumeil's H2 SETTINGS handshake was extracted, hardened, and completed for production in this PR.
This was the parent issue of the HTTP/2 milestone.
Activity
Keksoj commentedon Feb 13, 2023
This layer architecture is outdated since this refactoring was enough:
This refactoring makes the state machine of HTTP and HTTPS sessions responsible for handling the backends and for passing through the traffic.
The multiplexing logic would be best implemented by adding a new State to the HTTP and HTTPS state machine. This new state could be called
MuxHttpand would handle the splitting of HTTP2 traffic in several streams, and doing the passthrough and load balancing to several backends.FlorentinDUBOIS commentedon Apr 27, 2026
Closed by #1209 — feat(h2): HTTP/2 support via unified Mux session layer.
The Mux layer replaces the old
Http<Front>protocol with a unified session that handles all four protocol combinations (H1↔H1, H1↔H2, H2↔H1, H2↔H2). Per-stream Kawa buffers decouple frontend and backend state — front and back sockets are no longer coupled through a shared BufferQueue. The originalmux_v1design from @Edemolis with @hcaumeil's H2 SETTINGS handshake was extracted, hardened, and completed for production in this PR.This was the parent issue of the HTTP/2 milestone.