Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: variable timeoutby nardo (Friar) |
on Apr 18, 2001 at 02:19 UTC ( [id://73374]=note: print w/replies, xml ) | Need Help?? |
You could use gettimeofday() from Time::HiRes to measure the time between sending and receiving data. That being said, I think a single large timeout value is better than making a variable timeout. Just because a server was quick to respond earlier doesn't mean it will be quick to respond later.
In Section
Seekers of Perl Wisdom
|
|