Re: [PATCH]: Use only backends with use_backed & friends

From: Willy Tarreau <w#1wt.eu>
Date: Fri, 19 Oct 2007 20:34:29 +0200


Hi Krzysztof,

On Fri, Oct 19, 2007 at 05:42:18PM +0200, Krzysztof Oledzki wrote:
>
> On Fri, 19 Oct 2007, Krzysztof Oledzki wrote:
>
> >Hello,
> >
> >As it is possible to use the same name for two proxies, make sure that
> >use_backed & friends does not match wrong proxy when used with
> >use_backend/default_backend/setbe. For example, without this patch, when
> >there is a backend and frontend with the same name (first backend and then
> >frontend trying to use specific backend), the application will likely try
> >to use frontend instead of backend, complaining loudly about a loop.
>
> Sorry for the empty subject, corrected with this mail.

I've read your two patches. You pointed the finger on something which used to have no side effect in the past, but which is very dirty right now. I still don't know if it's desirable to be able to use the same name for a frontend and a backend, it can get very confusing. On the other hand, I can understand that people would get confused by not being able to use the same name, because the "objects" they manipulate are different.

After some thinking, it's not that stupid to be able to use the same name for a frontend and a backend, as both simply constitute a "listen" instance. Even the stats will reflect that.

OK, unless someone steps up with another idea or with valid arguments to completely disable the ability to use identical names for different types, I'll merge your mails.

Thanks!
Willy Received on 2007/10/19 20:34

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