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

AutoNAT servers added are not deduplicated #4699

Closed
b-zee opened this issue Oct 20, 2023 · 0 comments · Fixed by #4700
Closed

AutoNAT servers added are not deduplicated #4699

b-zee opened this issue Oct 20, 2023 · 0 comments · Fixed by #4700

Comments

@b-zee
Copy link
Contributor

b-zee commented Oct 20, 2023

Summary

Addresses added with autonat::Behaviour::add_server are not deduplicated. This is unlike kad::Behaviour::add_address.

We came across this issue as it was causing us to 'leak' memory, as we kept adding addresses that we were observing. We are adding these servers manually, because in the past we have observed AutoNAT to complain there are no AutoNAT probe servers available (OutboundProbeError::NoServer). This is because by default it uses currently connected peers, but at times there might not be connections to peers causing AutoNAT to not succeed in getting our status. Waiting for our AutoNAT status caused us to further stall our node booting.

Expected behavior

Deduplication

Actual behavior

Duplicated servers in list

Relevant log output

No response

Possible Solution

#4700

Version

master

Would you like to work on fixing this bug ?

Yes

b-zee added a commit to b-zee/rust-libp2p that referenced this issue Oct 20, 2023
@mergify mergify bot closed this as completed in #4700 Oct 25, 2023
mergify bot pushed a commit that referenced this issue Oct 25, 2023
b-zee added a commit to b-zee/rust-libp2p that referenced this issue Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant