httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Travis <jtra...@covalent.net>
Subject Re: New post-log-transaction hook?
Date Mon, 17 Sep 2001 23:09:08 GMT
On Mon, Sep 17, 2001 at 07:01:21PM -0400, Cliff Woolley wrote:
> On Mon, 17 Sep 2001, Jon Travis wrote:
> 
> > I've got a bit of code that needs to run after a connection to a client
> > has been closed.  Right now I can (kind of) spoof this by setting the
> > keepalive for the client to 0, and registering a cleanup on the
> > request_req pool.  Unfortunately the code in there is somewhat bulky,
> > so any subsequent cleanups that it registers will never get called
> > (apparently registering a cleanup within a cleanup no workie).
> >
> > I'd like to propose a new hook which gets run after connection to
> > the client has been closed.  (in my case, I run some cleanup code
> > which can take a while, and would like the client to be on its way).
> 
> Why can't you just register a cleanup on c->pool instead of r->pool?
> 

Well, I can register a cleanup on either pool, create a new subpool and
destroy it myself before I return from the cleanup.  That would solve
all the problems, but it does seem really hackish (and an abuse of the
cleanups).

-- Jon


Mime
View raw message