Re: [ANNOUNCE] mod_perl 2.0.5

Hans Scharler <[email protected]>
Newsgroups gmane.comp.apache.mod-perl,gmane.comp.java.ofbiz.devel
Message-ID <[email protected]>
Yes, the entire process restarts.

Here is the exact line:

ModPerl::Util::exit: (120000) exit was called at
D:/InterfaceServer/Perl/lib/CGI/Carp.pm line 561
[Sun May 29 05:25:10 2011] [notice] Parent: child process exited with status
255 -- Restarting.

It's a notice.

I did some further testing and found that it restarts and exits apache when
the application is printing to the browser. So, if you have a bunch of data
to send to the browser and the connection stops in the middle, it throws
the above error.

my $template = "Lots of data ..";
print $template;

Is there a better way to transfer lots of data to the browser?

This is where I was able to to track it down to. If I stop the browser
before it hits this print line, the "ModPerl::Util::exit(0)" works.

Thanks fro taking a look.

Hans

On Sun, May 29, 2011 at 3:07 PM, Thomas den Braber <[email protected]> wrote:

> Hans,
>
> > ModPerl::Util::exit: (120000) exit was called at
> > D:/InterfaceServer/Perl/lib/CGI/Carp.pm line 561
> > Parent: child process exited with status 255 -- Restarting.
>
> I have done a lot of testing on windows with the 2.05 release and have not
> seen this error before. It must be something specific in your code. It
> looks like the exit command is triggers some where in your code (
> http://perl.apache.org/docs/2.0/api/ModPerl/Util.html#C_exit_ ).
>
> Does it also restart Apache?
>
> I have done some testing with calling ModPerl::Util::exit(0) (that's what
> is actually done in CGI::Carp) and did not found an error in my log. does
> it say [error] or [warn] in your log file ?
>
> --
> Thomas
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.