-
Notifications
You must be signed in to change notification settings - Fork 941
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
Consider changing identify cache default to be non-zero #2933
Comments
I am in favor of this. |
Hi, I've got a draft PR, but it feels too.... simple. 😁 Did I miss something big in the PR, or is that really all there is? |
We already have #2995 open for this 🙈 Sorry, should have maybe made that more obvious in the issue here! It is quite a simple change yeah, we are just separating it so bisecting is easier in case something breaks! |
No prob! I'm just happy my change was about 90% there 😂 I'll close out my PR. |
fixed with #2995 |
Description
The
rust-libp2p
identify implementation has a cache that remembers the reported addresses from the last X connected peers even once they get disconnected. By default, X is zero.Motivation
Most users probably don't know about this cache and thus, do not benefit from it. If we make the default value 100, the maximum memory footprint will still be < 500kb (1 identify message has max 4096 bytes, that * 100 is still only 400kb and there is more than just addresses in the message).
Current Implementation
Are you planning to do it yourself in a pull request?
Maybe.
The text was updated successfully, but these errors were encountered: