Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 47801 invoked from network); 10 Jun 2004 02:30:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Jun 2004 02:30:18 -0000 Received: (qmail 45944 invoked by uid 500); 10 Jun 2004 02:30:33 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 45811 invoked by uid 500); 10 Jun 2004 02:30:32 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 45548 invoked by uid 99); 10 Jun 2004 02:30:31 -0000 Received: from [66.77.29.165] (HELO secure.exclamationlabs.net) (66.77.29.165) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 09 Jun 2004 19:30:31 -0700 Received: from modperlcookbook.org (pcp05682390pcs.walngs01.pa.comcast.net [69.139.166.203]) (authenticated (0 bits)) by secure.exclamationlabs.net (8.11.6/8.11.6) with ESMTP id i5A2Txq29550 for ; Wed, 9 Jun 2004 21:29:59 -0500 Message-ID: <40C7C78D.7000506@modperlcookbook.org> Date: Wed, 09 Jun 2004 22:29:33 -0400 From: Geoffrey Young User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: dynamic hook ordering References: <40C7A8F4.7070701@modperlcookbook.org> In-Reply-To: X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Cliff Woolley wrote: > On Wed, 9 Jun 2004, Geoffrey Young wrote: > > >>I wanted to ping everyone about an idea I've been throwing around for a few >>months now. I'd like the ability to shuffle the declared hook ordering >>around, most likely during the post-config phase. > > > There was some discussion about this or something at least vaguely like it > a while back, but nobody ever got around to implementing it. > > See http://marc.theaimsgroup.com/?l=apache-httpd-dev&m=106637026719893&w=2 ah, cool. I totally missed that. thanks. I think I have most of the --list-hooks stuff done already, if in a crude form. the debugging code in the module ends up looking like this: [info] found module mod_unique_id.c scheduled for hook HookPostReadRequestHandler [info] found module mod_setenvif.c scheduled for hook HookPostReadRequestHandler [info] found module mod_perl.c scheduled for hook HookTransHandler so it's just a matter of making it decent. you mention having an option for httpd, so that's a good place for me to start with this. -h is taken, so how about a -k (hooK) command line option that would give something like this post-read request: mod_unique_id.c mod_setenvif.c translation: mod_perl.c and so on. it would need to be an option like configtest to get everything I'd think. > But sure, feel free, have at it. :) cool. I'm really intrigued by ben's last comment, the hook-listing API - if anyone has some ideas wrt what the API ought to look like from a user perspective it would be a help. or I could just code something up and we can take it from there :) --Geoff