komuw / ong

ong, is a Go http toolkit.
MIT License
16 stars 4 forks source link

track go/issues/56539: net: add support for MPTCP #353

Open komuw opened 10 months ago

komuw commented 10 months ago

In the issue, rsc said;

I am inclined to say that we add MPTCP as an opt-in for a release or two, and then make it opt-out. 
There should be a GODEBUG setting 

We should see if we can send a patch upstream to make it opt-out

komuw commented 10 months ago

The Go v1.21 release notes say;

On Linux, the net package can now use Multipath TCP 
when the kernel supports it. It is not used by default. 
To use Multipath TCP when available on a client, call the `Dialer.SetMultipathTCP` method before calling 
the `Dialer.Dial` or `Dialer.DialContext` methods.

To use Multipath TCP when available on a server, call the `ListenConfig.SetMultipathTCP` method 
before calling the `ListenConfig.Listen` method. 
Specify the network as "tcp" or "tcp4" or "tcp6" as usual.
komuw commented 4 months ago

PR upstream; https://go-review.googlesource.com/c/go/+/563575

That PR is blocked on https://github.com/multipath-tcp/mptcp_net-next/issues/383