Hi Fellow Monks, I have coded script to connect to my messaging server to retrieve user info by telnet using Socket connection. I think is not IO::Socket is Socket. The problem occur when i telnet to the server, I have issue few command to capture all the infomation I needed. Each command retrieve some detail i needed and store it to the array. Problem is after few command have been issue, in the middle of the process some other command is failed to proceed and no response from the server. The log file I wrote did not give any detail error response. Finally the web browser page time out with error page display. May I know how can I detect whether the error is coz by the telnet session timeout, how to write the detection script and include to my script? Or is there any problem might happen, where server automatically will timeout me in certain of time. But by in cmd prompt, i use telnet command, it seem to be taken very long time the session of telnet only time out. Thank you, urs helps are very appreciate. Kenny

In reply to Socket connection problem by Draff

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.