Re: [error] Software caused connection abort at

Cosimo Streppone <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <op.u4t3kawys5ttvb@cn01>
In data 12 dicembre 2009 alle ore 05:38:06, discobeta  
<[email protected]> ha scritto:

> Dear all,
>
> Recently i've been noticing an error on the apache error log that
> states:[error] Software caused connection abort at [script path] line  
> [line
> number].

I've seen that happen when I used something like:

sub handler {
     my ($r) = @_;

     # ...
     my $response_body = whatever();

     $r->content_type('text/html');
     $r->print($response_body);

}

*AND*

for some weird reason, `$response_body' happened to be empty.

> Can anyone point me in the right direction?

I would start logging whatever you are trying
to $r->print().

-- 
Cosimo
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.