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?

In reply to IO::Socket::INET timeout setting - only 0 works by ghee2ghee

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.