]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: checks: Implement SPOP check using tcp-check rules
authorChristopher Faulet <cfaulet@haproxy.com>
Sat, 4 Apr 2020 08:27:09 +0000 (10:27 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:38 +0000 (09:39 +0200)
commit267b01b7611699a4a2b98c6f36c651f5cacd76a9
tree090a1bab521f5862208ddb99e117902269449690
parent1997ecaa0c5eaed39b6ce4a50f8018f0ef2df134
MEDIUM: checks: Implement SPOP check using tcp-check rules

A share tcp-check ruleset is now created to support SPOP checks. This way no
extra memory is used if several backends use a SPOP check.

The following sequence is used :

    tcp-check send-binary SPOP_REQ
    tcp-check expect custom min-recv 4

The spop request is the result of the function
spoe_prepare_healthcheck_request() and the expect rule relies on a custom
function calling spoe_handle_healthcheck_response().
include/proto/checks.h
include/types/checks.h
include/types/proxy.h
src/cfgparse-listen.c
src/checks.c