]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "MEDIUM: checks: capture groups in expect regexes"
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Apr 2020 13:32:11 +0000 (15:32 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 08:46:28 +0000 (10:46 +0200)
commit88d939c83121a419f2a88e8f2e7262089f205b2e
treef1252a4b4dc1025eedadffffa759f5eaa17e988a
parentaec7f76af835b15bb048a9e9994a0b2154a26b99
Revert "MEDIUM: checks: capture groups in expect regexes"

This reverts commit 1979943c30ef285ed04f07ecf829514de971d9b2.

Captures in comment was only used when a tcp-check expect based on a negative
regex matching failed to eventually report what was captured while it was not
expected. It is a bit far-fetched to be useable IMHO. on-error and on-success
log-format strings are far more usable. For now there is few check sample
fetches (in fact only one...). But it could be really powerful to report info in
logs.
include/types/checks.h
reg-tests/checks/tcp-check_comment-with-capture.vtc [deleted file]
src/checks.c