Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(libp2p): enable shared TCP listeners #10565

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

aschmahmann
Copy link
Contributor

@aschmahmann aschmahmann commented Oct 30, 2024

Part of #10560, relies on libp2p/go-libp2p#2984

@@ -64,6 +66,10 @@ func Transports(tptConfig config.Transports) interface{} {
opts.Opts = append(opts.Opts, libp2p.Transport(webrtc.New))
}

if tcpEnabled || wsEnabled {
opts.Opts = append(opts.Opts, libp2p.ShareTCPListener())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels odd we need to do this for TCP, but not for UDP.
Dropped comment in https://github.com/libp2p/go-libp2p/pull/2984/files#r1823606432

@aschmahmann aschmahmann force-pushed the feat/libp2p-sharedtcp branch 2 times, most recently from 702101e to 60d8d5c Compare November 5, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants