Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Setting timeout threhold when connecting to a socket.

by gbarr (Monk)
on Dec 14, 2001 at 01:39 UTC ( [id://131774]=note: print w/replies, xml ) Need Help??


in reply to Setting timeout threshold when connecting to a socket.

IIRC, SO_SNDTIMEO and SO_RCVTIMEO do not apply to the connect.

If you do not want to use IO::Socket then your best bet is to do what it does. First place the socket into non-blocking mode, then call connect, then use select(). The socket will become readable when connected.

  • Comment on Re: Setting timeout threhold when connecting to a socket.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found