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(iroh-net): use try_send rather than send so we dont block the local swarm discovery service #2794

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

ramfox
Copy link
Contributor

@ramfox ramfox commented Oct 7, 2024

Description

Using subscriber.send().await could block the entire discovery service if one of the subscribers polls too slow. Change to try_send that will drop the discovery item from that stream if it is closed.

Notes & open questions

Added a line in the documentation to mention that if you do not poll enough, you may miss messages.

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.

Copy link

github-actions bot commented Oct 7, 2024

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/2794/docs/iroh/

Last updated: 2024-10-07T14:57:22Z

Copy link

github-actions bot commented Oct 7, 2024

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: 8bc1dd8

Merged via the queue into main with commit 2d04306 Oct 7, 2024
27 checks passed
@ramfox ramfox deleted the ramfox/subscribe-fix branch October 8, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants