Skip to content

Conversation

@Himess
Copy link

@Himess Himess commented Dec 7, 2025

Closes #13856

Moves buffer drain logic from Stream::poll_next to Sink::poll_ready
and Sink::poll_flush to ensure satellite protocol messages are sent
in first-come-first-served order.

Changes:
- Stream::poll_next now sends only one buffered message per poll
  (full drain happens in Sink impl)
- Sink::poll_ready drains entire out_buffer before checking primary
- Sink::poll_flush drains buffer and flushes both conn and primary
- Sink::poll_close closes both conn and primary
- Added io::Error bound for proper error conversion

Closes paradigmxyz#13856
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Improve overall multiplex performance for rlpx satellite stream

1 participant