-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Some libp2p streams needs to use transient connections #1050
Comments
cc @vyzo Now that I think about it, all streams except |
We now have transient connections and we're using them in some application protocols. |
relayv2.there is a word:check for a limit provided by the relay; if the limit is not nil, then this is a limited.relay connection and we mark the connection as transient. |
use the |
but are you sure this is what you want to do? |
when i use relayv2.New(host),Throw an exception “transient connection”. |
|
Once libp2p/go-libp2p-transport-upgrader#71 and the Limited Relay work by @vyzo lands, streams need to explicitly tell the Swarm(via a context) that they are okay with using Transient connections.
Streams like Identify and the Hole punching streams should use Transient connections as the Hole punching attempt depends on Identify completion.
The text was updated successfully, but these errors were encountered: