Skip to content

Commit a03478e

Browse files
iduartgomezclaude
andcommitted
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 <noreply@anthropic.com>
1 parent 2eaeba8 commit a03478e

2 files changed

Lines changed: 163 additions & 1335 deletions

File tree

0 commit comments

Comments
 (0)