BUG/MINOR: http-check: Use right condition to consider HTX message as full
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Dec 2020 18:45:07 +0000 (19:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Dec 2020 10:48:15 +0000 (11:48 +0100)
commit3f527197cd7d34fc1975862f346e2d778dc44dc2
tree27646f68fcb67a4bd1c6d9cacb55af16373d9047
parent343d0356a5292a05b82ba514aec76e1e7bc6b8be
BUG/MINOR: http-check: Use right condition to consider HTX message as full

When an HTTP expect rule is evaluated, we must know if more data is expected
or not to wait if the matching fails. If the whole response is received or
if the HTX message is full, we must not wait. In this context,
htx_free_data_space() must be used instead of htx_free_space(). The fisrt
one count down the block size. Otherwise at the edge, when only the block
size remains free (8 bytes), we may think there is some place for more data
while the mux is unable to add more block.

This bug explains the loop described on the GH issue #991. It should be
backported as far as 2.2.
src/tcpcheck.c