Replies: 2 comments 4 replies
-
/CC @mxinden any possible insight on this matter? |
Beta Was this translation helpful? Give feedback.
0 replies
-
To clarify, you'd like to have a connection to the relay without an active reservation? I've not thought deeply about it but at first sight, having |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if this is by designed, but in the current implementation, one might expect to be able to stop listening on the circuit relay by simply calling
Swarm::remove_listener
, or emitToSwarm::RemoveListener
from the behaviour, however supplying the listener id of the active relay thats being listened on by the local node to one of those calls does not actually stop the node from using the relay nor does it emit an event toSwarm
(nor does the log indicate anything being done). I may be missing a piece of info but the relay client transport does allow closing the listener, however this doesnt seem to be the case when actually trying to close it. To be able to stop listening on the relay, one would have to close the connection, however, this may not be desirable if the node wishes to maintain connection without having to disconnect then reconnect.I bought this up in #3430 but forgot about it (including forgetting to follow up), however this look more of a bug than being intentional by design, but looking over the spec, it does make one believe the only way is to actually disconnect. Maybe somebody can confirm this if possible
Beta Was this translation helpful? Give feedback.
All reactions