in reply to Re^3: HTML::Mason and long method call
in thread HTML::Mason and long method call

The system is a Fedora Core release 3 (Heidelberg), with Mason $HTML::Mason::VERSION = '1.34';

The error_mode is the default and the code inside longfunction depends on the specific function, but is always calls to NET::Telnet->*, to execute commands on remote network hardware.

The component compiles to expectable code, and works everytime the call to longfunction takes a bit less time.

Didn't tried the Mason mailling list yet as I'm subscribed with an email I don't have configured in this computer. Gone try that later on my home computer.

Thanks,

Replies are listed 'Best First'.
Re^5: HTML::Mason and long method call
by ForgotPasswordAgain (Vicar) on Oct 24, 2006 at 09:49 UTC
    Note that the default error_mode sends output to the browser:
       error_mode
           Indicates how errors are returned to the caller.  The choices are fatal, meaning die
           with the error, and output, meaning output the error just like regular output.
    
           The default under Apache and CGI is output, causing the error to be displayed in the
           browser.  The default for standalone mode is fatal.
    

    (From perldoc HTML::Mason::Request.)

    I have a dread of mod_perl under RedHat, but I haven't used it for several years so I don't know what the current status is. What you're describing sounds like something that might happen there (requests mysteriously dropped as something segfaults), though, which is why I asked.

    I'd suspect your code first, though...