Have you considered pinging (Net::Ping) the host first to make sure it is alive before you enter the IO::Socket section of your code? It may be much easier than handling the connection timeout the way you want to.
In reply to Re: Timeout problem using IO::Socket
by lhoward
in thread Timeout problem using IO::Socket
by ChOas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |