Wise ones,

I'm using HTML::Mason for the web interface for a lib used to configure network hardware over telnet.

Everything seemed to work nice and smooth, until I tried this outside my lab environment.

Several places in my code I have things like this:
print STDERR "Going to call longfunction()\n"; my $val=$nethard->longfunction(); print STDERR "After the call to longfunction()\n";
longfunction executes several telnet commands, depende on the exact longfunction.

The behavior I don't understand is that the first message is correctly printed, the longfunction is called, and looks to terminate ok, but any code after that is skipped, as if each component had a timeout, that I can't find anywhere, and that terminate the component.

Even if this is the case (which I thing is strange, once I had - and still have - Mason pages with queries that execute for several minutes), I think some error should be logged to STDERR (apache error_log) and it isn't.

Any idea? Anyone know what I should look for?

Thank you very much every one.

Update: did found the problem. It was a timeout in Net::Telnet that turned into a die (cmd call without -errmode=>'return'). Still confuse me anyway, as I expected that nothing after that component call should display, and expected the die to be displayed as a mason error, as every other die, and that doesn't happen. The page renders completly just as if the component did return ok.


In reply to HTML::Mason and long method call by themage

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.