mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation MPTCP provides multipath capability for TCP connections. This allows TCP connections to consume multiple independent network paths, providing devices with a number of capabilities to improve throughput, latency, or reliability. MPTCP is not totally transparent, and requires servers to support the functionality as well as clients. To that end, we should expose some MPTCP capability. Importantly, MPTCP uses a number of new socket flags and options. To enable us to support this when it is available but gracefully fail when it is not, we've hardcoded a number of Linux kernel constants instead of relying on libc to expose them. This is safe to do on Linux because its syscall layer is ABI stable. Modifications - Add ClientBootstrap and ServerBootstrap flags for MPTCP - Plumb MPTCP through the stack - Add new socket options for MPTCP Result MPTCP is supported on Linux