summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMatthieu Baerts <matthieu.baerts@tessares.net>2023-02-24 17:51:58 +0100
committerGopher Robot <gobot@golang.org>2023-03-29 22:12:20 +0000
commit7dc10dbf45db5a361e0ace376dedb5578f6a5642 (patch)
treefd679f97b79942db58f12ba621e8ead785d7697b /api
parent0bd94e4387da2ce056c0f4e9bfa66976841710a5 (diff)
downloadgo-git-7dc10dbf45db5a361e0ace376dedb5578f6a5642.tar.gz
net: mptcp: implement listenMPTCP
Similar to dialMPTCP, this listenMPTCP function is called when the user has requested MPTCP via SetMultipathTCP in the ListenConfig. This function falls back to listenTCP on operating systems that do not support MPTCP or if MPTCP is not supported. On ListenConfig side, MultipathTCP function can be used to know if the package will try to use MPTCP or not when Listen is called. Note that this new listenMPTCP function returns a TCPListener object and not a new MPTCP dedicated one. The reasons are similar as the ones explained in the parent commit introducing dialTCP: if MPTCP is used by default later, Listen will return a different object that could break existing applications expecting TCPListener. This work has been co-developped by Gregory Detal <gregory.detal@tessares.net>. Updates #56539 Change-Id: I010f1d87f921bbac9e157cef2212c51917852353 Reviewed-on: https://go-review.googlesource.com/c/go/+/471137 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'api')
-rw-r--r--api/next/56539.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/next/56539.txt b/api/next/56539.txt
index ad1dfb7251..65d0418aff 100644
--- a/api/next/56539.txt
+++ b/api/next/56539.txt
@@ -1,2 +1,4 @@
pkg net, method (*Dialer) MultipathTCP() bool #56539
pkg net, method (*Dialer) SetMultipathTCP(bool) #56539
+pkg net, method (*ListenConfig) MultipathTCP() bool #56539
+pkg net, method (*ListenConfig) SetMultipathTCP(bool) #56539