fix(FPEngine): respect max-rtt-timeout in OS detection RTO calculation

This commit is contained in:
susysandeman05 2026-07-18 22:48:13 -06:00
parent b3948715c4
commit 213ebbef8e

View file

@ -1424,6 +1424,8 @@ int FPHost::update_RTO(int measured_rtt_usecs, bool retransmission) {
* low-latency networks (such as localhost scans). */
if (this->rto < (MIN_RTT_TIMEOUT*1000))
this->rto = (MIN_RTT_TIMEOUT*1000);
if (this->rto > (o.maxRttTimeout()*1000))
this->rto = (o.maxRttTimeout()*1000);
return this->rto;
}