perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rolf Schaufelberger ...@plusw.de>
Subject Re: register_cleanup
Date Thu, 13 Dec 2007 21:18:53 GMT
On Wednesday 12 December 2007 23:44:40 Perrin Harkins wrote:
> On Dec 12, 2007 2:05 PM, Rolf Schaufelberger <rs@plusw.de> wrote:
> >   my $r = $self->{__apache_req__};
>
> Yikes, be careful of storing Apache2::RequestRec objects.  Terrible
> things will happen if you try to access one from a previous request.
>
> >   $r->pool->cleanup_register (\&cleanup, {name=> 'test', cnt=>10});
>
> Try $r->push_handlers(PerlCleanupHandler => \&cleanup);
>
> - Perrin

tried this, same result (redirect takes place after cleanup function has 
finished). 

-- 
Rolf Schaufelberger

Mime
View raw message