-
Notifications
You must be signed in to change notification settings - Fork 876
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
RFC: Remove StreamMuxerEvent::AddressChange
variant
#2723
Conversation
I am torn. On the one hand I am in favor of deleting the dead code, on the other hand, would be a bummer to have two consecutive breaking changes, one removing it, one re-introducing it ones supported in libp2p-quic. @elenaf9 what are your thoughts on this? Do you expect we can support this feature in libp2p-quic in the near future, say till early 2023? |
At least in the current version of this PR, the functions on
To add to this question: Will we support this feature via the It feels a bit odd that the |
This is never constructed, neither by libp2p-yamux, nor by libp2p-mplex. Also, the WIP QUIC implementation which is mentioned in the comments also does not support this feature. All of theses lines are dead code and are never executed.
0c7792a
to
18c83ec
Compare
Yes I think we can support it. Not necessarily in the first version, but in near future afterwards. I believe the reason that we currently don't do it is because quinn-proto does not emit an event if the remote's address changed. So right now we'd have to manually poll
Not sure if I understand what you mean. From how you named the variant I would assume that you are referring to address changes on the local node, e.g. because we switched network. But I believe the |
I agree |
All good. I think the solution in #2724 is superior to a design without this variant anyway :) Going to close as a result. |
Description
This is never constructed, neither by libp2p-yamux, nor by libp2p-mplex.
Also, the WIP QUIC (#2289) implementation which is mentioned in the comments
also does not support this feature.
All of theses lines are dead code and are never executed.
I propose to delete this "functionality" until we know that it will be implemented and used.
This is a draft for now because:
StreamMuxer::Substream
to implementAsync{Read,Write}
#2707.Links to any relevant issues
Open Questions
Change checklist
I have added tests that prove my fix is effective or that my feature works