Geoffrey Young wrote:
[...]
Making it a startup configuration should be possible, IMO. Only if that
turns out to be impossible, I'd make it a compile-time option.


I don't think it's impossible, but I think it will be hard - we'd basically
need to change the nOrder value in the each hook structure at some point
then call apr_hook_sort_* manually.  I might be able to do this when some
directive is parsed or it may need to be a request-time operation - I can't
be sure without trying it first.  but the whole thing gives me the willies,
and I feel like we'd be introducing some magic that might add some
instability for very little value.

It shouldn't be hard at all. You can use server startup -D arguments to control that. Look at modperl_register_hooks which pushes -DMODPERL2. At the same place you can read ap_server_config_defines array and make different decisions on the order. So you could run:


httpd -DTRANS_REALLY_LAST -DRESPONSE_REALLY_FIRST

etc...

so it would be neither a compile time option, nor a configuration option, but a program define.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to