]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proxy/checks: Register a keyword to parse tcp-check rules
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 25 Mar 2020 17:20:15 +0000 (18:20 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commitfd6c2291bb7e498c2b49bfaa3032e64bbdd78efb
tree64d50733f936353cb33fcc3ae2d36ead3779316c
parent1d22d7ec0e6d7ec3832df53f0c0250052030787d
MEDIUM: proxy/checks: Register a keyword to parse tcp-check rules

The keyword 'tcp-check' is now parsed in a dedicated callback function. Thus the
code to parse these rules is now located in checks.c. In addition, a deinit
function have been added to release proxy tcp-check rules, on error or when
HAProxy is stopped.

This patch is based on Gaetan Rivet work. It uses a callback function registerd
on the 'tcp-check' keyword instead, but the spirit is the same.
src/cfgparse-listen.c
src/checks.c