]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tcpcheck: Be able to expect an empty response
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 20 Mar 2023 15:49:51 +0000 (16:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:46:06 +0000 (08:46 +0200)
commita664aa6a6875f5008998cd4c88f7ddc4c862be0e
tree9b97dade1baecb39ec5f6a4bcf76b2d68e699971
parent0222cc636670c7d2fe8f02f41d2bd7e68f5e756c
BUG/MINOR: tcpcheck: Be able to expect an empty response

It is not possible to successfully match an empty response. However using
regex, it should be possible to reject response with any content. For
instance:

   tcp-check expect !rstring ".+"

It may seem a be strange to do that, but it is possible, it is a valid
config. So it must work. Thanks to this patch, it is now really supported.

This patch may be backported as far as 2.2. But only if someone ask for it.
src/tcpcheck.c