NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on May 26, 2021 at 21:47 UTC

You may view the original node and the consideration vote tally.

Replies are listed 'Best First'.
Re: variable timeout
by nardo (Friar) on Apr 18, 2001 at 02:19 UTC
    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.