computeRetransmitTimeout

fnDuration computeRetransmitTimeout(int retryCount) @safe pure nothrow @nogc

Compute retransmit timeout with exponential backoff.

The timeout starts at DTLS_INITIAL_TIMEOUT and doubles with each retry, up to DTLS_MAX_TIMEOUT. This implements the exponential backoff algorithm specified in RFC 6347 §4.2.4.1.

Parameters

retryCountNumber of retransmissions already performed.

Returns

The timeout duration for the next retransmission.