Skip to content

slipstream-server: QUIC-LB support for stateless load balancer routing#80

Open
aleskxyz wants to merge 3 commits intoMygod:mainfrom
aleskxyz:add-quic-lb
Open

slipstream-server: QUIC-LB support for stateless load balancer routing#80
aleskxyz wants to merge 3 commits intoMygod:mainfrom
aleskxyz:add-quic-lb

Conversation

@aleskxyz
Copy link

@aleskxyz aleskxyz commented Mar 8, 2026

Add QUIC-LB support to slipstream-server

When running behind a QUIC-LB–aware load balancer, the server can emit connection IDs that encode a server_id so the LB can route packets without per-connection state.

Changes:

  • --quic-lb-server-id (0–255): optional CLI flag. When set, the server registers a picoquic connection-ID callback and issues 8-byte QUIC-LB plaintext CIDs (config_rotation=0, 1-byte server_id, 6-byte nonce). CID length is 8 so it matches picoquic's default local_cnxid_length and connection lookup works.
  • SIP003: same value can be set via plugin option quic_lb_server_id=N.
  • Config: ServerConfig gains quic_lb_server_id: Option<u8>; the callback is only registered when Some(id).
  • Deps: getrandom added for nonce generation in the callback (with an atomic fallback if getrandom fails).
  • Docs: config.md describes the flag and SIP003 option; picoquic-changes.md documents use of the picoquic connection-ID callback.

Each backend in a pool should use a distinct server_id (e.g. 0, 1, 2) so the LB can route by decoded server_id to the correct backend.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a66895ecee

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@aleskxyz
Copy link
Author

aleskxyz commented Mar 8, 2026

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant