IMHO, It would also be a *hack* - it depends on what that code does.. It
just doesn't seem logical for me to do something that's "not log_transaction
concerned" during that phase.. 

-Madhu

-----Original Message-----
From: Ryan Bloom [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 4:12 PM
To: [EMAIL PROTECTED]; Jon Travis
Subject: Re: New post-log-transaction hook?


On Monday 17 September 2001 03:52 pm, Jon Travis wrote:

Why can't you do it in the log_transaction phase.  Assuming this is
not a keepalive connection, the client will be gone by the time that
phase is run.  If this is a keep-alive transaction, then you won't
save anything by adding another phase.

Ryan

> 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).
>
> Any thoughts?
>
> -- Jon

-- 

______________________________________________________________
Ryan Bloom                              [EMAIL PROTECTED]
Covalent Technologies                   [EMAIL PROTECTED]
--------------------------------------------------------------

Reply via email to