Skip to content

How should I handle connection management/reuse #3087

Answered by flub
dpc asked this question in Q&A
Discussion options

You must be logged in to vote

The iroh::Endpoint itself does not do anything fancy under the hood. If you want to establish multiple independent connections to different nodes (which is totally valid, they might be using different ALPNs!) then you can do so.

Previous versions of iroh-net included a Dialer that did something like this. It is still used internally in iroh-gossip and iroh-blobs I think but no longer exposed. We removed because it was an odd tool where it lived, relatively simple to make and somewhat particular to how you want to use connections. I also don't think everyone who does want connection reuse will want them in the same way.

I must add the removal was relatively contentious, some folks did feel…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dpc
Comment options

Answer selected by matheus23
Comment options

You must be logged in to vote
1 reply
@dpc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants