[pkg-lighttpd] Bug#521235: Bug#521235: Adding modules to server.modules not idempotent

Stefan Bühler stbuehler at lighttpd.net
Thu Aug 5 22:20:11 UTC 2010


On 08/06/2010 12:04 AM, Olaf van der Spek wrote:
> 2010/8/6 Stefan Bühler<stbuehler at lighttpd.net>:
>> You think that a "module-load-list"
>> (a, a, b) should be the same as (a, b) - i.e. removing duplicates
>
>> But there is no good way to decide what to do with (a, b, a),
>> as (a, b) and (b, a) are really different (order matters);
>> and therefore we cannot make module loading "idempotent".
>
> What about not adding a module that's in the list already?
>
> Olaf

That would be deciding (a, b, a) should be (a, b).

You write your replies so fast that i somehow doubt you even thought 
about it.

If you still don't get it, ask me in irc instead of chatting here, thx.

PS:

Small example:
server.modules += ( "mod_proxy" )

server.modules += ( "mod_auth", "mod_proxy" )

- you really want mod_auth to be loaded before mod_proxy, but your 
algorithm would load mod_proxy before mod_auth.





More information about the pkg-lighttpd-maintainers mailing list