Conversation
This actually won't have any impact
|
I think the errors reported by Lint are not caused by this PR |
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #3109 +/- ##
==========================================
+ Coverage 35.59% 35.60% +0.01%
==========================================
Files 729 729
Lines 41613 41660 +47
==========================================
+ Hits 14812 14834 +22
- Misses 25167 25193 +26
+ Partials 1634 1633 -1 ☔ View full report in Codecov by Sentry. |
xiaokangwang
left a comment
There was a problem hiding this comment.
I think this pull request is ready to be merged. Thanks for your contribution.
Documentation pull request for this merge request is welcomed. To reduce time to process merge request, documentation are no longer release blocker.
Background
Multipath TCP or MPTCP is an extension to the standard TCP and is described in RFC 8684. It allows a device to make use of multiple interfaces at once to send and receive TCP packets over a single MPTCP connection. MPTCP can aggregate the bandwidth of multiple interfaces or prefer the one with the lowest latency.
Support for Multipath TCP was first added in Go 1.21. In a future Go release we may enable Multipath TCP by default on systems that support it.
Go 1.21 Release Note
Other proxy softwares that written in Go had add it.
Behavior
If
mptcpis not set insockopt, V2Ray will not do any action about MPTCP, and MPTCP is disabled by default on latest Go currently. Ifmptcpis set totrue, V2Ray will try to enable MPTCP, but it only works on Linux now. On other platforms, it will make any impact.If one of the server and the client does not support MPTCP, MPTCP will not work and the connection will be the same as a normal TCP connection.
Go versions
This PR can only be compiled with Go 1.21 or newer versions. The minimal Go version in
v2ray-coreandquic-goinmainbranch is Go 1.21, so I think this PR not make any impact to this problem.v2ray-core/go.mod
Line 3 in 8191faa
Test Results
On Linux,

sudo ip mptcp monitorcan monitor the status of MPTCP connections.On other platforms, this PR will not make any impact currently. (I just tested it on macOS)