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(request-response): Report dial IO errors to the user #5429

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

oblique
Copy link
Contributor

@oblique oblique commented May 29, 2024

Description

This fixes a potential infinite retrying when dialing bad peers. The error is now reported to the user and they should handle it as they see fit for their case.

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

This fixes an infinite retrying when dialing bad peers. The error
is now reported to the user and they should handle it as they
see fit for their case.
Copy link
Member

@jxs jxs left a comment

Choose a reason for hiding this comment

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

Thanks Yianis! LGTM

@jxs jxs requested a review from thomaseizinger May 31, 2024 16:39
@jxs jxs added the send-it label Jun 4, 2024
@mergify mergify bot merged commit 68301b8 into libp2p:master Jun 4, 2024
72 checks passed
@oblique oblique deleted the fix/report-io-dial-error branch June 4, 2024 10:22
TimTinkers pushed a commit to unattended-backpack/rust-libp2p that referenced this pull request Sep 14, 2024
This fixes a potential infinite retrying when dialing bad peers. The error is now reported to the user and they should handle it as they see fit for their case.

Pull-Request: libp2p#5429.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants