Skip to content

Proxying mixed traffic (HTTP2/HTTP1) #980

Closed

Description

@Keksoj

A incoming HTTP2 connexion could be split between several clusters (an extreme but possible case).
Each cluster could maintain several open connections, be they of the HTTP1 or HTTP2 kind.


Update — 2026-04-24

Implemented on feat/h2-mux (PR #1209). The Mux session transparently handles all four frontend × backend combinations:

Frontend Backend Status
HTTP/1.1 HTTP/1.1 ✅ Existing (via Mux)
HTTP/1.1 HTTP/2 ✅ New
HTTP/2 HTTP/1.1 ✅ New
HTTP/2 HTTP/2 ✅ New

Each H2 frontend stream independently selects a backend (H1 or H2) via router.rs. Backend H2 multiplexing reuses ConnectionH2 upstream, so one H2 frontend can fan out to multiple backend H2 connections across clusters. The Position enum (Server for frontend, Client(cluster_id, backend, status) for backend) drives the position-aware split.

Suggest closing on merge of #1209.

Activity

  1. added this to the HTTP2 milestone on Aug 9, 2023
  2. FlorentinDUBOIS commented on Apr 27, 2026

    @FlorentinDUBOIS
    Collaborator

    Closed by #1209 — feat(h2): HTTP/2 support via unified Mux session layer.

    The Mux layer supports the full protocol matrix transparently:

    Frontend Backend Status
    H1 H1 OK
    H1 H2 OK
    H2 H1 OK
    H2 H2 OK

    Demultiplexing across multiple clusters (and H1↔H2 mixing within a single H2 client connection) is handled by the per-stream Stream abstraction with independent front: Kawa<Checkout> / back: Kawa<Checkout> buffers, plus the Position enum (Server for frontends, Client(cluster_id, backend, status) for backends) which drives stream splitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions