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 busy loop if all darknet peers are connected. #1031

Merged

Conversation

ArneBab
Copy link
Contributor

@ArneBab ArneBab commented Jan 4, 2025

This needs to be merged and released as emergency release, because it turns darknet nodes with 100% connected nodes into electrical heaters.

@ArneBab ArneBab force-pushed the dns-requester-avoid-busy-loop-on-dns-request branch from 9d51ca6 to 060fab4 Compare January 4, 2025 16:59
Copy link
Contributor

@bertm bertm left a comment

Choose a reason for hiding this comment

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

Yikes, good catch, the early return had unintentional side effects.

This could easily have been avoided if the code performing the work would not have been mixed with the code in charge of scheduling that work. That could be accomplished by moving the waiting code from realRun() to run().

The current change by itself is fine though.

@ArneBab ArneBab merged commit a921c7d into hyphanet:next Jan 6, 2025
1 check passed
@ArneBab
Copy link
Contributor Author

ArneBab commented Jan 6, 2025

Merged — thank you for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants