Dear Monks,
I have a worrying problem I cannot explain. I'm trying to use Net::SMTP to send mail (which uses IO::Socket::INET). On most platforms, I have no problems at all. However, on one (SCO Openserver 5.0.4), I can only connect to the SMTP server if I specify a timeout of 0 - all other values cause the connect to fail immediatley.
I've isolated the issue to IO::Socket::INET (it isn't Net::SMTP). A colleague seems to think that it's because the connection is somehow created differently if a zero timeout is specified - but I'm not convinced. I've seen a similar issue reported here, but it was not resolved.
I'd like to know why only a zero timeout works. What do I do if I need a proper timeout? I can't send out live code knowing that there is a potential support issue.
Could anyone elighten me?