mirror of
https://github.com/nmap/nmap.git
synced 2026-01-31 18:49:08 +00:00
Always update srtt, rttvar, and timeout for every response, even if we don't adjust congestion control or send delay variables. Be more careful about checking gstats->sendOK when sending retransmits. Previously, it was only checked once per traversal of the incomplete hosts list, which meant that enough probes could be sent in a round to exceed the congestion window. Explanatory pictures are at http://www.bamsoftware.com/wiki/Nmap/PerformanceGraphs#retransmit-sendOK. This needs some more testing to see what effect it has on scan times. My instinct says it will slow them down, because retransmits will be sent no faster than before, and retransmits will be more likely to be responded to, leading to more drops. On the other hand, correctly detecting a drop and marking a host up is better than blasting retransmits faster than they can be responded to.
183 KiB
183 KiB