Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: variable timeout

by nardo (Friar)
on Apr 18, 2001 at 02:19 UTC ( [id://73374]=note: print w/replies, xml ) Need Help??


in reply to Reaped: variable timeout

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: note [id://73374]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found