Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Reaped: variable timeout

by NodeReaper (Curate)
on Apr 18, 2001 at 02:07 UTC ( [id://73366]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://73366]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2024-03-28 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found