]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: checks: make __event_chk_srv_r() report success before closing
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Sep 2019 16:43:22 +0000 (18:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Sep 2019 06:13:15 +0000 (08:13 +0200)
commit4c1a2b30a3c32df9e8fc7e8002d3390460816861
tree31d9275689f4537e85556ec2351127314f687100
parentcc705a6b612df9d1ac46fea4c733f621669c4514
BUG/MINOR: checks: make __event_chk_srv_r() report success before closing

On a plain TCP check, this function will do nothing except shutting the
connection down and will not even update the status. This prevents it
from being called again, which is the reason why we attempt to do it
once too early. Let's first fix this function to make it report success
on plain TCP checks before closing, as it does for all other ones.

This must be backported to 2.0. It should be safe to backport to older
versions but it doesn't seem it would fix anything there.
src/checks.c