I have a script on a server, and then more services on various clients. Everything works great in the process of what I am trying to accomplish, but when the socket is closed on one of the remote machines, The server side script exits with a "Broke n Pipe" error. For now I just have a cron job to make sure the process is running every 2 minutes and starting it back up if it isn't, but I would like the process to always be running listening for connections on it's port. While I was testing this, I did a clean shutdown of where the socket was closed on the client side and turned off; broken pipe. Just killing the service on the client side resulted in a broken pipe error as well. Can anyone give any insight on how to keep the process up and running, or more details on the broken pipe error? Been googling but not coming up with anything good. <edit> I am seeing different messages saying the socket was not closed properly, but The client side (c# code) I have watched it go thru debug mode and close the socket. I will see if I can find anything about ignoring a broken pipe error. Like I saw $SIG{PIPE}= 'IGNORE'; if I want to ignore the error. I will look into just logging it, but keeping the process alive?

In reply to IO::Socket "broken pipe" by hallikpapa

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.