You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pin the stall test's TCP window instead of relying on buffer autotuning
The stall test flooded 10000 x 4000B (~40MB) to force the writer to
block on a full TCP receive window, a size tuned to fit between "fits
entirely" and "nothing arrives in 5s" on one machine's loopback buffer
autotuning. A CI runner with larger tcp_rmem/tcp_wmem maxima could
absorb the flood and spuriously pass with zero drops.
Give RtmpPlayer::connect_and_play an optional rcvbuf parameter (0 by
default, preserving the delivery test's behavior unchanged) that pins
SO_RCVBUF before connect so the advertised window is capped at
handshake. The stall test now pins it to 4096 bytes and shrinks the
flood to 1500 x 4000B frames, making the writer block -- and the
resulting frames_dropped() > 0 -- deterministic regardless of host
buffer tuning, and the test runs in under a second.
0 commit comments