httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reid" <ab...@dial.pipex.com>
Subject Re: [PATCH] - Allow mod_mmap_static to work with Apache-2.0
Date Fri, 10 Sep 1999 10:41:05 GMT
Ben,

That's what I did in the end for the more "civilised" solution I found!
Thanks.

david
----- Original Message -----
From: Ben Laurie <ben@algroup.co.uk>
To: <new-httpd@apache.org>
Sent: 10 September 1999 11:33
Subject: Re: [PATCH] - Allow mod_mmap_static to work with Apache-2.0


> David Reid wrote:
> >
> > Here is a simple patch that allow mod_mmap_static to work.  I don't know
if
> > it's the right way to do it, but I've added a new hook description of
> > HOOK_ALMOST_LAST with a value of 28, just short of HOOK_REALLY_LAST at
30.
> > In mod_mmap_static the hook for translate_handler is added as
> > HOOK_REALLY_LAST and so I've changed the one in http_core to be
> > HOOK_ALMOST_LAST.  Yeah it's basic but it's obvious and it works.
>
> If you want it to come after http_core, you should probably do this:
>
> char *aszPre[]={"http_core",NULL};
>
> ap_hook_translate_name(your_translate,aszPre,NULL,HOOK_LAST);
>
> Fiddling the numbers to get ordering right will just cause a numbers
> arms war :-)
>
> Note that the topological sort is also stable, so you can (crudely)
> control where you come relative to _other_ things that want to come
> after http_core by using HOOK_FIRST/MIDDLE/LAST.
>
> Cheers,
>
> Ben.
>
> --
> http://www.apache-ssl.org/ben.html
>
> "My grandfather once told me that there are two kinds of people: those
> who work and those who take the credit. He told me to try to be in the
> first group; there was less competition there."
>      - Indira Gandhi


Mime
View raw message