perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cosimo Streppone <cos...@streppone.it>
Subject Re: [error] Software caused connection abort at
Date Sat, 12 Dec 2009 16:46:48 GMT
In data 12 dicembre 2009 alle ore 05:38:06, discobeta  
<discobeta@gmail.com> 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

Mime
View raw message