Hi all,

Would anyone know where to start looking about how to track down the source of this following line in error.log:

Apache2::Filter: (620018) APR does not understand this error code at -e line 0

When this is printed, Apache stops handling requests and restarts. We can reproduce this by clicking on a few web pages in quick succession.

Operating environment for Apache is:

mod_perl 2.0.0
apache 2.0.54
mod_ssl
Windows XP Professional


The module that uses Apache2::Filter looks like this:

package BlaBlaBla;

use strict;
use Apache2::Filter ();
use Apache2::RequestRec ();
use Apache2::Connection ();
use APR::Table ();

my $utf8_leftover;
my $leftover;

[...]

sub handler {
        my ($f) = shift;
        $r = $f->r;

        unless ($f->ctx) {
                if ($r->content_type =~ m#^text/#) {
                        $f->r->headers_out->unset('Content-Length');
                }
                set_globals ();
                $f->ctx(1);
                $leftover = '';
                $utf8_leftover = '';
                binmode (STDOUT, ":utf8");
                binmode (STDERR, ":utf8");
        }

        if ($r->content_type =~ m#^text/#) {
                while ($f->read(my $buffer, BUFF_LEN)) {
                        utf8::encode ($leftover);
$f->print (do_it ($leftover . $utf8_leftover . $buffer));
                }
        } else {
                while ($f->read(my $buffer, BUFF_LEN)) {
                        $f->print ($buffer);
                }
        }
        return Apache2::Const::OK;
}

[...]

Reply via email to