Apparently, the $maxNetworkDelay was being triggered when network delays occurs and that actually sends a signal to all threads. This was causing the death of the daemon.

This makes no sense to me at all. I've (briefly) scoured the LWP::UserAgent code, and can see nowhere that it raises a signal. Not as a result of a timeout, nor anything else.

Did I know why I wrote the handler at the top? Partly yes, because I knew all threads were getting the signals in 5.8.4.

Do I know what is happening precisely? Definately not. Would appreciate your views on this

I've recently learned that this (frankly weird) behaviour of signals and threads is different on (at least one variant of) *nix, than it is on Windows. Even with recent versions of both Perl & threads.

As such, whilst I hope my contributions so far have helped you to reaching a solution, I do not feel qualified to comment further on this. Sorry.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP an inspiration; A true Folk's Guy

In reply to Re^3: Coroner not helping - Perl5.8.4,threadsv1.03 and the case of myterious deaths by BrowserUk
in thread Coroner not helping - Perl5.8.4,threadsv1.03 and the case of myterious deaths by MonkeyMonk

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.