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: do not override known address after identify is done #1485

Closed

Conversation

fryorcraken
Copy link
Contributor

@fryorcraken fryorcraken commented Nov 21, 2022

Identify protocol being executed it means that both peers are somehow connected. Hence, it should not override working multiaddresses but only add to it.

Fixes #1484

@fryorcraken
Copy link
Contributor Author

Another fix would be to not add the addresses at all to the address book.

Identify protocol being executed it means that both peers are somehow connected. Hence, it should not override working multiaddresses but only add to it.

Fixes libp2p#1484
@p-shahi p-shahi added the P0 Critical: Tackled by core team ASAP label Nov 22, 2022
@mpetrunic
Copy link
Member

@fryorcraken Identify returns trusted peer addresses so it makes sense to replace old addresses in the address book.

Why is your peer sending non-working addresses? Maybe it makes sense to add support to disable identify service altogether?!

Copy link
Member

@achingbrain achingbrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't evict old addresses, there's a risk the list of known addresses for a remote peer will grow and grow, eventually growing beyond the maxDialsPerPeer limit which will cause dials to fail in a hard to debug way.

The question really is, why is the remote peer sending you 0.0.0.0 addresses?

@fryorcraken
Copy link
Contributor Author

Continuing discussion at #1484 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Critical: Tackled by core team ASAP
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Autodialer uses 0.0.0.0 address
4 participants