> On Thu, 2004-12-16 at 11:18 +0000, Vadim wrote:
> > >>On Wed, 2004-12-15 at 20:32 +0000, Vadim wrote:
> > >> it looks like i missed something important...
> > >> So how to get Response data in the PerlCleanupHandler script?!
> > >
> > >It's already sent by then.  What are you trying to do?  Do you want to
> > >filter it?
> >
> > I want to store this data in a cache.
>
> You should use a filter then.  Looks like you already figured that out,
> based on your most recent post.  Let us know how it turns out.

i try to get a response data in the PerlCleanupHandler stage to do some 
internal actions. This actions do not perform any modifications on a response 
data. So i dont want to keep user waiting. And i supposed untill $r object is 
alive it's possible to get the data. But it looks like i mistake. and it's 
impossible.

The solution is to register the cleanup handler in the PerlResponseHandler 
script and to pass the data and $r object as the arguments:

r->pool->cleanup_register(\&MyApache::MyProxy::handler, { r => $r, data => 
$data} );



-- 
vad

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to