-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Does this really make sense? You are printing the pointer of the pointer
to the apache request object.

- -------------------8<-------------------
package Bla;

sub new {
   bless {};
}

package main;
# $bla = new Bla();
$bli = new Bla();
print "" . (\$bli) . " => $bli\n";
- -------------------8<-------------------

Run this example in the shell and you'll also get the same output, then
uncomment and the object is create in new memory position.

Moreover as far as I know perl reuses space allocated space (hence it's
not freed) that's why you should not use fileuploads with mod_perl.

Tom

Tim Esselens schrieb:
> Hi list,
> 
> I'm using mp2 (2.0.1) and have it configured like this:
> 
> -[httpd.conf]------------
> PerlResponseHandler X;
> 
> -[X.pm]------------------
> package X;
> sub handler() {
>     $r = shift;
>     print STDERR \$r."\n";
> }
> 
> When I look at the printout, I get (ex):
> 0x11111 [req 1 child 1]
> 0x11111 [req 1 child 2]
> 0x22222 [req 2 child 1]
> 0x22222 [req 2 child 2]
> ...
> 
> So I was wondering wether or not this is normal behaviour. 
> (The Apache2::RequestRec is only re-new()ed every n-hits, 
> n being the number of apache children)
> And where I could find out more about why it's doing this. 
> 
> --
> kind regards,
> Tim Esselens
> 
> 
> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC3joJkVPeOFLgZFIRAuWyAJ90owybBbSG6uW/hDbcL/MZwIITBgCeP4Wu
9hHxQexnZmRzoXE9hKKJCag=
=/Rny
-----END PGP SIGNATURE-----

Reply via email to