]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[CLEANUP] config: catch and report some possibly wrong rule ordering
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Mar 2009 14:23:16 +0000 (15:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Mar 2009 14:23:16 +0000 (15:23 +0100)
commit5af24efee92713d89c7a8a7e47c864129514294f
treed6887ef46863a033c8e2a83a998d4f289ca8380f
parent55bc0f8eb7a48a8f482f1e74eb2bf29b18e0ce99
[CLEANUP] config: catch and report some possibly wrong rule ordering

There are some configurations in which redirect rules are declared
after use_backend rules. We can also find "block" rules after any
of these ones. The processing sequence is :
  - block
  - redirect
  - use_backend

So as of now we try to detect wrong ordering to warn the user about
a possibly undesired behaviour.
include/common/cfgparse.h
src/cfgparse.c
src/proto_tcp.c