Skip to content
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

fix: registrar is not calling topology on peer reconnect #1504

Merged
merged 3 commits into from
Dec 1, 2022

Conversation

mpetrunic
Copy link
Member

If the peer reconnects with the same protocols, change:protocols is not emitted and topology onConnect callbacks are not invoked. This adds listening to connect events in the registrar and checks if we already know protocols for peers before calling the topology onConnect callback.

resolves #1496

@mpetrunic
Copy link
Member Author

Seems like regression as it was once fixed in same manner: https://github.com/libp2p/js-libp2p-interfaces/pull/54/files

@achingbrain achingbrain merged commit 5a62f4f into master Dec 1, 2022
@achingbrain achingbrain deleted the fix/registrar-reconnect branch December 1, 2022 11:50
@AlexMesser
Copy link

Thanks for the fix, hope new npm version will be released soon.

@achingbrain
Copy link
Member

Likely Monday morning - in the interim you can test with the rc with npm i libp2p@next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Connection drop causes pubsub to stop working.
3 participants