commit | 74fa7fbec947f04f2245500d44903fba6092d711 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Nov 23 14:43:49 2012 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 23 14:43:49 2012 +0100 |
tree | 946ef73572df913f1a7325f355b70df921569c90 | |
parent | 24db47e0cc590a07af8fc086da771e30c0c3e392 [diff] |
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.