Skip to main content

Module pacing

Module pacing 

Source
Expand description

Tokenless send pacing. Eligibility is a deadline, not a credit ledger.

Structs§

IdleWatch
Idle send fence. After idle_us with no send, further send is Closed. Reopen with the same generation is Replay (nonce reuse). A new generation is required. Wired into packet protection via PacketProtection::seal_paced.
Pacer

Functions§

on_paced_send
Charge bytes against the pacing rate and push next_send_us.
set_rate_from_window_rtt
Rate ≈ window / smoothed_rtt (RFC 9002 pacing). Unknown RTT fails closed.
wait_until
QdnfError::WouldBlock when now_us is still before the pacing deadline.