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?? |
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.
In Section
Seekers of Perl Wisdom
|
|