mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
num_probes_active == 0 in HostScanStats::completed. The reason for this is fairly subtle and I didn't realize it at first: We have to make sure there are no active probes because once in the completed list, probes don't time out. Probes that are active stay active in the count. If the congestion window ever falls below the number of these active probes, the program will hang waiting for them to time out. We could get away with this in the case of up hosts, because we call HostScanStats::destroyAllOutstandingProbes in that case. We could do that in the down case too, but that would prohibit a down host from being found up later on. That's currently a matter of some luck; we don't keep sending probes after a host is down but will accept replies to any other probes that have already been sent.
196 KiB
196 KiB