one of the older CGI::Application-based pieces here has started exhibiting some strange behaviour. one link (well, one submit into one run_mode) just hangs. the wheels spin, but nothing spits out into the error_log, nothing to the screen ... nothing.

i've added  warn "this is the end of sub setup() "; where you would expect a comment like that. even added a warning in the calling script to see where the problem is.

thing is, about ... 2+ minutes after the button is pressed I'll see:

Premature end of script headers: Financial.cgi, referer: <myscript>/cg +i-bin/Financial.cgi?cgitoken=&rm=pulluprecord&args=3274
then nothing for a while again ... then another few minutes (literally minutes) some of the warnings i added to the called runmode get spat out. i've even resorted to a warning just after the usual my $self = shift; line .. and even that doesn't show up in the error log in a timely fashion.

all the other page links work ... i've already revamped the code slightly to use just a hash in sub setup() rather than the subrefs that older versions use ...

so i'm not even sure where to start looking. this is a strange one. anyone have another pointer or three for me?


In reply to strange issue w/ script "hanging" by geektron

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.