csirtgadgets / LWPx-ParanoidAgent

LWPx-ParanoidAgent
http://search.cpan.org/dist/LWPx-ParanoidAgent
3 stars 9 forks source link

high res timeouts #5

Open wesyoung opened 11 years ago

wesyoung commented 11 years ago

It would be nice if the much-improved timeout handling of LWPx- ParanoidAgent used Time::HiRes instead of the built-in time() function.
Currently it misbehaves if you use a sub-second timeout and the request begins near the end of the current second (you can get a failure after 0.0001 seconds for a 0.1 second timeout, for example)

This can be fixed by a simple "use Time::HiRes qw(time)"