Improve overall multiplex performance for rlpx satellite stream #13856
Labels
A-networking
Related to networking in general
C-enhancement
New feature or request
C-perf
A change motivated by improving speed, memory usage or disk footprint
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
the sink impl for
reth/crates/net/eth-wire/src/multiplex.rs
Lines 579 to 585 in bcf4f1b
has a smol flaw that could potentially starve rlpx satellite impls.
because this will always bypass the satellite messages that are currently buffered
reth/crates/net/eth-wire/src/multiplex.rs
Lines 587 to 600 in bcf4f1b
to fix this we should move the sink logic embedded in the stream impl into the sink impl
reth/crates/net/eth-wire/src/multiplex.rs
Lines 469 to 479 in bcf4f1b
this way poll_ready should always drain the output buffer of satellite msgs first treating all messages fcfs
FYI @0xvanbeethoven @Will-Smith11
Additional context
No response
The text was updated successfully, but these errors were encountered: