Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: IO::Sockets timeout implementation confusion

by jdtoronto (Prior)
on Jan 31, 2004 at 03:24 UTC ( #325493=note: print w/replies, xml ) Need Help??


in reply to IO::Sockets timeout implementation confusion

The socket timeout is used within the connect() and accept() methods. It does not currently affect calls that send or receive data.

One side effect of using the timeout is that the connect() and accept() calls are then interuptable, allowing a signal handler to gracefully interupt a process that is hung waiting for a connect() or accept() to complete. So in essence the timeout value tells the module how long we are prepared to block IO while awaiting a connect() or accpet(). You need to do the management of 'lost clients' at the SESSION level.

jdtoronto

  • Comment on Re: IO::Sockets timeout implementation confusion

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2022-05-17 15:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (66 votes). Check out past polls.

    Notices?