pub struct TimerConfig {
pub max_t1_init_retrans: usize,
pub max_t1_cookie_retrans: usize,
pub max_t2_shutdown_retrans: usize,
pub max_t3_rtx_retrans: usize,
pub max_reconfig_retrans: usize,
pub max_ack_retrans: usize,
}Expand description
Retransmission limits for the association’s timers.
Each field caps how many times the corresponding timer may fire before the association is
abandoned. Default follows the RFC 9260 recommendations.
Fields§
§max_t1_init_retrans: usizeHow many times INIT may be retransmitted (T1-init) before the association fails.
How many times COOKIE-ECHO may be retransmitted (T1-cookie).
max_t2_shutdown_retrans: usizeHow many times SHUTDOWN (or SHUTDOWN ACK) may be retransmitted without a packet from
the peer (T2-shutdown) before the association ends with
AssociationError::TimedOut. Defaults to
Association.Max.Retrans, 10 (RFC 9260 9.2).
max_t3_rtx_retrans: usizeHow many consecutive T3-rtx expiries, with no new DATA acknowledged in between, are
tolerated before the peer is declared unreachable and the association closes with
AssociationError::TimedOut (RFC 9260 8.1).
An unanswered HEARTBEAT counts as one more.
Defaults to Association.Max.Retrans, 10 (RFC 9260 16): with the RTO doubling up to
RTO.Max that is about five minutes without an answer. usize::MAX never gives up and
leaves the failure of the path to whatever runs underneath (ICE consent, for WebRTC).
max_reconfig_retrans: usizeNot a limit of its own any more: a RE-CONFIG request (RFC 6525 5.1.1) is retransmitted
until it is answered, its timer doubling up to RTO.Max, and each expiry that does not
follow an “In progress” answer counts toward
max_t3_rtx_retrans, as an unanswered HEARTBEAT does.
Past that limit the association ends with
AssociationError::TimedOut.
max_ack_retrans: usizeHow many times a delayed SACK may be retransmitted.