From 7ea03753b464e1e9e7508bf69d1e309b10d0c97c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 26 May 2023 16:52:28 -0700 Subject: [PATCH] doc/go1.21: mention multipath TCP support For #56539 For #59166 Change-Id: Ief392464916a1a74a8fcc6c3c7bdb213e8c6ef98 Reviewed-on: https://go-review.googlesource.com/c/go/+/498601 Run-TryBot: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Eli Bendersky TryBot-Result: Gopher Robot Reviewed-by: Matthieu Baerts --- doc/go1.21.html | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/doc/go1.21.html b/doc/go1.21.html index 075cee592a..d3d79a2f25 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -608,24 +608,33 @@ Do not send CLs removing the interior tags from such phrases.
net
-

- TODO: https://go.dev/issue/56539: add support for MPTCP +

+ + + 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. If + Multipath TCP is not supported by the kernel or the remote host, + the connection will silently fall back to TCP. To test whether a + particular connection is using Multipath TCP, use the + TCPConn.MultipathTCP + method.

- -

- TODO: https://go.dev/issue/59166: add func (*TCPConn) MultipathTCP() (bool, error) -

- -

- TODO: https://go.dev/cl/471136: net: mptcp: implement dialMPTCP; modified api/next/56539.txt -

- -

- TODO: https://go.dev/cl/471137: net: mptcp: implement listenMPTCP; modified api/next/56539.txt -

- -

- TODO: https://go.dev/cl/471140: net: mptcp: add TCPConn's MultipathTCP checker; modified api/next/59166.txt +

+ In a future Go release we may enable Multipath TCP by default on + systems that support it.