]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: checks: rework completely bogus state machine
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 11:47:05 +0000 (12:47 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 11:47:05 +0000 (12:47 +0100)
commit5a78f36db356dc6eb4911d7a2104c90294dd4f7d
treeeeba7b98e4a5d40ba71c48447900d72bc6592234
parentd3aac7088e2c023c421f0c68da76254e47130762
MAJOR: checks: rework completely bogus state machine

The porting of checks to using connections was totally bogus. Some checks
were considered successful as soon as the connection was established,
regardless of any response. Some errors would be triggered upon recv
if polling was enabled for send or if the send channel was shut down.

Now the behaviour is much better. It would be cleaner to perform the
fd_delete() in wake_srv_chk() and to process failures and timeouts
separately, but this is already a good start.
include/types/server.h
src/checks.c
src/dumpstats.c