Skip to main content

Module rtt

Module rtt 

Source
Expand description

RFC 9002-style RTT estimator for QSession (not QUIC wire-compatible).

Integer microseconds only. First sample seeds smoothed RTT and rttvar; later samples use the 7/8 and 3/4 EWMA from RFC 9002 §5.

Structs§

RttEstimator

Functions§

on_ack_sample
Absorb one ACK delay-adjusted sample. sample_us == 0 is ignored.
smoothed_or_err
Pacing / PTO helper. Zero smoothed RTT is not a usable estimate.