-
Notifications
You must be signed in to change notification settings - Fork 29
Conversation
To use TCP transport options, pass them to the `libp2p.Transport` constructor: | ||
```go | ||
h, err := libp2p.New( | ||
libp2p.Transport(tcp.NewTCPTransport, tcp.DisableReuseport(), tcp.WithConnectionTimeout(20*time.Second)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seams like a good way to do this, but it's not currently supported. Are you planning on implementing it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of libp2p/go-libp2p#1205, it is implemented. It's just not released yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably should hold this PR back until we've cut the next go-libp2p release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that's really cool!
@marten-seemann : can this be merged? |
Not yet, we haven't cut the next go-libp2p release yet. |
Got it. Given the release is coming soon, should we start a Relase 0.16
issue and then reference this PR in that issue so it becomes part of the
release process?
…On Sun, Oct 24, 2021 at 1:44 AM Marten Seemann ***@***.***> wrote:
Not yet, we haven't cut the next go-libp2p release yet.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAU3I2T7GWB4LGUCSWXT63UIPBNNANCNFSM5FACJS6Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
No description provided.