httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ville Skyttä <ville.sky...@iki.fi>
Subject Massive leak in Apache2::Upload?
Date Wed, 18 May 2005 11:56:41 GMT
Hi,

Using 2.05-dev with mod_perl 2 rc5 and Apache 2.0.52 on Fedora Core 3,
when handling uploads using Apache2::Upload, the httpd process size
seems to go up by the size of the processed upload(s) after the request
completes.  For example, when feeding a 260MB file to a trivial handler
like this (configured with SetHandler perl-script, PerlHandler uptest):

    package uptest;
    use Apache2::Request;
    use Apache2::Upload;
    sub handler
    {
      my $r = Apache2::Request->new(shift);
      print "Content-Type: text/plain\r\n\r\n";
      foreach ($r->upload()) {
        my $up = $r->upload($_);
        print $up->filename(), "\n";
      }
    }
    1;

...the size of the receiving httpd process grows by about 260MB after
handler() returns, and stays that big.  Tinkering with $up->fh, fully
reading and explicitly closing or undef'ing it (or undef'ing $up) does
not seem to have any effect.

Thoughts?


Mime
View raw message