BUG/MINOR: stconn: Use HTX-aware channel's functions to get info on buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Nov 2023 10:59:33 +0000 (11:59 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Nov 2023 14:09:33 +0000 (15:09 +0100)
commitab5ecaa2ea57aae22b22e98c7c57de5d67a3891a
tree4de577407416bc0c220af02f85a6dde8b853a04d
parent24409a5caa902de68e50636399f86345abeb8f65
BUG/MINOR: stconn: Use HTX-aware channel's functions to get info on buffer

Some channel function are used to check if the channel's buffer is full, not
empty or if there are input data. However, functions used are not
HTX-aware. So it is not accurate and may prevent some actions to be
performed (However, not sure there are really issues). Because HTX-aware
versions now exist, use them instead.

This patch may be backported as far as 2.2. It relies on

    * "MINOR: channel: Add functions to get info on buffers and deal with HTX streams"
    * "MINOR: htx: Use a macro for overhead induced by HTX"
src/stconn.c