Skip to content

half protocol implementations #540

Closed

Description

@Geal

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.

Activity

  1. added this to the milestone on Oct 19, 2018
  2. Geal commented on Oct 19, 2018

    @Geal
    MemberAuthor

    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

  3. reopened this on Oct 3, 2019
  4. modified the milestones: , 0.14 on Jul 29, 2021
  5. self-assigned this
    on Jul 30, 2021
  6. modified the milestones: v0.14.0, next on Feb 18, 2022
  7. FlorentinDUBOIS commented on Apr 27, 2026

    @FlorentinDUBOIS
    Collaborator

    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.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions