]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] checks: group health checks methods by values and save option bits
authorWilly Tarreau <w@1wt.eu>
Sat, 6 Aug 2011 15:05:02 +0000 (17:05 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 6 Aug 2011 15:08:40 +0000 (17:08 +0200)
commit1620ec39a7156c4fd518359975498c10b81ef7aa
tree175269d045b0e245fab656580c4ec1abc25d1186
parenta3eb39ca6280897115cb31f6d5a1fb74821a80f2
[MEDIUM] checks: group health checks methods by values and save option bits

Adding health checks has become a real pain, with cross-references to all
checks everywhere because they're all a single bit. Since they're all
exclusive, let's change this to have a check number only. We reserve 4
bits allowing up to 16 checks (15+tcp), only 7 of which are currently
used. The code has shrunk by almost 1kB and we saved a few option bits.

The "dispatch" option has been moved to px->options, making a few tests
a bit cleaner.
include/types/proxy.h
src/backend.c
src/cfgparse.c
src/checks.c
src/frontend.c