Skip to content

Add optional MPTCP support for upstream TCP sockets#861

Open
baily-zhang wants to merge 5 commits intocloudflare:mainfrom
baily-zhang:feat-mptcp-upstream
Open

Add optional MPTCP support for upstream TCP sockets#861
baily-zhang wants to merge 5 commits intocloudflare:mainfrom
baily-zhang:feat-mptcp-upstream

Conversation

@baily-zhang
Copy link
Copy Markdown

@baily-zhang baily-zhang commented Apr 16, 2026

Summary

  • add optional PeerOptions flags to request MPTCP for upstream TCP connects
  • create upstream sockets with IPPROTO_MPTCP on Linux and fall back to plain TCP when enabled
  • document how to enable the option in the proxy example

Behavior

  • default behavior is unchanged
  • MPTCP is opt-in via tcp_mptcp
  • fallback to plain TCP remains enabled by default via tcp_mptcp_fallback
  • non-Linux platforms return the existing socket error path unless fallback is enabled

Testing

  • cargo fmt --all --check
  • cargo test -p pingora-core --lib
  • cargo check -p pingora-proxy

@drcaramelsyrup drcaramelsyrup added the enhancement New feature or request label Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants