]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] merged the 'setbe' actions to switch the backend on a regex
authorWilly Tarreau <w@1wt.eu>
Sun, 17 Dec 2006 22:15:24 +0000 (23:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 17 Dec 2006 22:15:24 +0000 (23:15 +0100)
commita496b6042b52a6500c19fdf4ce679295bea29c3b
tree5b40d2aef7e4db34cc9d459ecc0eae39bebd56f1
parentddb358d932f99baf10d4ac3c139e6cd461af136c
[MAJOR] merged the 'setbe' actions to switch the backend on a regex

Sin Yu's patch to permit to change the proxy from a regex was merged
with little changes :
  - req_cap/rsp_cap are not reassigned to the new proxy, they stay
    attached to the frontend

  - the actions have been renamed "reqsetbe" and "reqisetbe" for
    "set BackEnd".

  - the buffer is not reset after the switch, instead, the headers are
    parsed again by the backend

  - in Sin's patch, it was theorically possible to switch multiple times,
    but the switching track was lost, making it impossible to apply
    server responsesin the reverse order. Now switching is limited to
    1 action (separation between frontend and backend) but the filters
    remain.

Now it will be extremely easy to add other switching conditions, such
as host matching, URI matching, etc...

There's still a hard work to be done on the logs and stats.
include/common/regex.h
src/cfgparse.c
src/proto_http.c