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

Make requests to peers with explicit addresses succeed #3127

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

nazar-pc
Copy link
Member

After #3126 (comment) I decided to write a test case ensuring my assumptions are correct and they were not. I had to hack around it a bit to make things work, but also filed libp2p/rust-libp2p#5634 to potentially improve API going forward.

We're basically caching request after explicit dial with addresses and only handling the request after explicit dial either succeeds or fails.

Code contributor checklist:

@nazar-pc nazar-pc force-pushed the fix-generic-request-with-addresses branch from 64b552e to 55e047d Compare October 15, 2024 00:43
@nazar-pc nazar-pc changed the title Make requests to peers with explicit peer ID succeed Make requests to peers with explicit addresses succeed Oct 15, 2024
Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

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

That does seem annoying, and somewhat counter-intuitive. Nice fix!

@nazar-pc nazar-pc added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit 7e7188b Oct 15, 2024
8 checks passed
@nazar-pc nazar-pc deleted the fix-generic-request-with-addresses branch October 15, 2024 05:40
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 this pull request may close these issues.

2 participants