in reply to Re: Net::Ping with threads
in thread Net::Ping with threads

The only real difference I'm seeing between that script that the original from the perldoc is the fact that your timeout is 0.003.. However when I run it with even with a .1 timeout value it dramatically increases the speed. I'm guessing my speed loss is directly proportional to the number of hosts that currently aren't pinging. I'm going to talk to the powers that be and see if having a subsecond timeout value is acceptable considering this is going to be more or less on the same subnet (within 4 switches or so).. The real aim of threading this system out is to prevent a host from stalling the rest of the scan. While a ping of 3 seconds would be outrageous, if the box responds it's not technically down.. However the cumulative effect of a number of boxes with a 3+ second delay causes a huge effect to the overall scan. I want to be able to catch those delays, but not when the rest of the scan could continue on merrily.