httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: New post-log-transaction hook?
Date Tue, 18 Sep 2001 16:44:27 GMT
On Tuesday 18 September 2001 08:17 am, William A. Rowe, Jr. wrote:
> Why not let the MPM register the lingerclose with APR_HOOK_MIDDLE in the
> post_connection hook?  That way, if Jon's (or any other author's) intent is
> to work before the lingering close, then it can be APR_HOOK_FIRST. 
> Otherwise register it APR_HOOK_LAST.

It shouldn't be a hook.  This should just be done with a pool cleanup.  Hooks
aren't the answer to every problem in the server.  Doing something after a
specific action, like the close of the connection should be done by registering
a pool cleanup.  Fix the bug that you can't register a cleanup within a cleanup,
and Jon's problem goes away completely, because he can use the cleanup
that he is already using.

Ryan
______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message