httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Khare <ashis...@gmail.com>
Subject Re: Callback function which is just called before connection is destroyed
Date Mon, 23 Feb 2009 17:53:36 GMT
Hi Eric,

Thanks for the fast response.
By "Session" I mean when the request comes into the picture, the "c"
<Connection> and "r"<request_rec> parameters are intialized.
Session ends when the request is served. the "c" and "r" parameters got
destroyed or cleanup.

Can you please send me the code snippet to register the cleanup function as
you suggested.
-Ashish
On Mon, Feb 23, 2009 at 11:05 PM, Eric Covener <covener@gmail.com> wrote:

>  On Mon, Feb 23, 2009 at 11:46 AM, Ashish Khare <ashishrk@gmail.com>
> wrote:
> > Hi,
> >
> > I need one small help from you.
> > I have one memory allocation(malloc) of application associated with "r"
> > parameter  in input filter and output filter.
> > I need to de-alloacte this memory and I want to de-allocate when session
> > ends.
> > Can any one of you please help me, which callback is used to notify the
> > session ends in Apache.
> > Fast reponse is appreciated.
>
> You can register a cleanup on r->connection->pool and it will run when
> the connection is cleaned up, but it's not clear if that's what you
> mean by a "session".
> --
> Eric Covener
> covener@gmail.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message