28 Oct
2025
28 Oct
'25
12:54 p.m.
On Tue, 28 Oct 2025 12:44:26 +0100
Stefano Brivio
Or maybe, building on my latest comment to 3/4:
int factor = conn->retries;
if (!(conn->events & ESTABLISHED)) factor -= c->tcp.syn_linear_timeouts;
it.it_value.tv_sec = RTO_INIT << MAX(factor, 0);
It just occurred to me that 'factor' might be misleading as this is rather an exponent, so maybe 'exp' instead. -- Stefano