Re: response data

[prev] [thread] [next] [Date index for 2004/12/17]

From: Vadim
Subject: Re: response data
Date: 12:09 on 17 Dec 2004
> 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

(message missing)

response data
Vadim 20:32 on 15 Dec 2004

Re: response data
Perrin Harkins 19:17 on 15 Dec 2004

Re: response data
Vadim 11:18 on 16 Dec 2004

Re: response data
Perrin Harkins 19:07 on 16 Dec 2004

Re: response data
Vadim 12:09 on 17 Dec 2004

Re: response data
Slava Bizyayev 17:33 on 17 Dec 2004

Re: response data
Vadim 14:01 on 20 Dec 2004

Re: response data
Slava Bizyayev 12:24 on 20 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52