I'm in need of some wisdom!

I am in need of a script i can run 24x7 every 5 minutes that will preform a socket connect to a web site check the header and go back to sleep. I have written this, however this is the bad part. We have a product setting on IIS that has a serious memory leak, and causes IIS to go into a failed state (does not respond to request) When this happens my script fails to work, because it is not able to complet the connect due to not getting a timeout or a sigalarm.

We have tried using Threads and get this error (This perl was built for "ithreads", which currently does not support Thread.pm)

We have also tired using the IO::Select pm and even writting our own timers, all to no avail.

Please any help you can offer would be greatly appreciated.

Trell


In reply to SigAlarm or Timeout on WINNT for a Socket Connect by trell

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.