const FRAME_TIMEOUT_MS: i32 = 500;
Long enough for a frame the hardware is slow on, short enough that a stalled node rebuilds the session rather than holding the stream. A 1080p frame takes about 35 ms on a Pi 4.