Re: [PATCH]: Check for duplicated conflicting proxies

From: Krzysztof Oledzki <ole#ans.pl>
Date: Sun, 21 Oct 2007 13:00:57 +0200 (CEST)

On Sun, 21 Oct 2007, Willy Tarreau wrote:

> On Sun, Oct 21, 2007 at 02:55:17AM +0200, Krzysztof Oledzki wrote:
>> Currently haproxy accepts a config with duplicated proxies
>> (listen/fronted/backed/ruleset). This patch fix this, so the application
>> will complain when there is an error.
>>
>> With this modification it is still possible to use the same name for two
>> proxies (for example frontend&backend) as long there is no conflict:
>>
>> listen backend frontend ruleset
>> listen - - - -
>> backend - - OK -
>> frontend - OK - -
>> ruleset - - - -
>>
>> Best regards,
>>
>> Krzysztof Ol?dzki
>
> Thanks, merged.

Thank you.

> BTW, in last mail I was speaking about minor style adaptations.
> I have added braces in the "for" block. It's far easier to track
> what begins where when blocks are embedded or when they span over
> multiple lines such as below.

Fine for me. My coding style is sometimes to ascetic, feel free to make such adaptations. ;)

Best regards,

                                 Krzysztof Olędzki Received on 2007/10/21 13:00

This archive was generated by hypermail 2.2.0 : 2007/11/04 19:21 CET