Commit 7fb2351
fix: resolve priority starvation in HandshakeEventStream poll_next
Changes the poll_next implementation to use an internal loop pattern
instead of returning Poll::Pending immediately after high-priority work.
This ensures all priority levels get fair polling opportunities.
The previous implementation would wake and return Pending after processing
high-priority channels, starving lower priorities. Now we use 'continue'
to loop back and check all priorities before returning Pending.
This fixes the fairness issue discovered during #1932 debugging where
mesh connectivity would establish but connections would disappear.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 0bd05db commit 7fb2351
File tree
2 files changed
+163
-1335
lines changed- crates/core/src
- node/network_bridge
- ring
2 files changed
+163
-1335
lines changed
0 commit comments