]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: close the socket as soon as we have a response
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 13:43:49 +0000 (14:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 13:43:49 +0000 (14:43 +0100)
commit74fa7fbec947f04f2245500d44903fba6092d711
tree946ef73572df913f1a7325f355b70df921569c90
parent24db47e0cc590a07af8fc086da771e30c0c3e392
MEDIUM: checks: close the socket as soon as we have a response

Until now, the check socked was closed in the task which handles the
check, which can sometimes be substantially later when many tasks are
running. It's much cleaner to close() in the wake call, which also
helps removing some FD management from the task itself.

The code is faster and smaller, and fast health checks show a more
predictable behaviour.
src/checks.c