summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMatthieu Baerts <matthieu.baerts@tessares.net>2023-02-24 17:51:57 +0100
committerGopher Robot <gobot@golang.org>2023-03-29 22:12:18 +0000
commit0bd94e4387da2ce056c0f4e9bfa66976841710a5 (patch)
treefcff44f6180e586f7c039cc020e98954d1a802c3 /api
parent6615324f79bf16e1c81951c9a18e51d1908f2698 (diff)
downloadgo-git-0bd94e4387da2ce056c0f4e9bfa66976841710a5.tar.gz
net: mptcp: implement dialMPTCP
This function is called when the user has requested MPTCP via SetMultipathTCP in the Dialer. This new function falls back to dialTCP on operating systems that do not support MPTCP or if MPTCP is not supported. On Dialer side, MultipathTCP function can be used to know if the package will try to use MPTCP or not when Dial is called. Note that this new dialMPTCP function returns a TCPConn object, like dialTCP. A new MPTCPConn object using the following composition could have been returned: type MPTCPConn struct { *TCPConn } But the drawback is that if MPTCP is used by default one day (see #56539 issue on GitHub), Dial will return a different object: this new MPTCPConn type instead of the previously expected TCPConn. This can cause issues for apps checking the returned object. This work has been co-developped by Gregory Detal <gregory.detal@tessares.net>. Updates #56539 Change-Id: I0f9b5b81f630b39142bdd553d4f1b4c775f1dff0 Reviewed-on: https://go-review.googlesource.com/c/go/+/471136 Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Run-TryBot: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> 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
new file mode 100644
index 0000000000..ad1dfb7251
--- /dev/null
+++ b/api/next/56539.txt
@@ -0,0 +1,2 @@
+pkg net, method (*Dialer) MultipathTCP() bool #56539
+pkg net, method (*Dialer) SetMultipathTCP(bool) #56539