Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/net/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const (
// See go.dev/issue/31510
defaultTCPKeepAlive = 15 * time.Second

// For the moment, MultiPath TCP is not used by default
// See go.dev/issue/56539
defaultMPTCPEnabled = false
defaultMPTCPEnabled = true
)

var multipathtcp = godebug.New("multipathtcp")
Expand All @@ -43,11 +41,11 @@ func (m *mptcpStatus) get() bool {
return false
}

// If MPTCP is forced via GODEBUG=multipathtcp=1
if multipathtcp.Value() == "1" {
// If MPTCP is disabled via GODEBUG=multipathtcp=0
if multipathtcp.Value() == "0" {
multipathtcp.IncNonDefault()

return true
return false
}

return defaultMPTCPEnabled
Expand Down