]> git.kaiwu.me - haproxy.git/commit
[PATCH] use backends only with use_backend directive
authorKrzysztof Oledzki <ole@ans.pl>
Wed, 31 Oct 2007 08:07:24 +0000 (09:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Oct 2007 08:07:41 +0000 (09:07 +0100)
commit097e13cf425efcc60399cebb0887d20c6ae8c120
tree398b3ee9bbe6cba9753cb0da553e513fefbc95b9
parent9dbe41b7d54bb850bedb6d99d7ee3048e403109d
[PATCH] use backends only with use_backend directive

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.

Best regards,

                                 Krzysztof Oledzki
src/cfgparse.c