BUG/MINOR: stconn: Fix streamer detection for HTX streams

Since the HTX was introduced, the streamer detection is broken for HTX
streams because the HTX overhead was not counted in the test to set
CF_STREAMER and CF_STREAMER_FAST flags.

The consequence was that the consumer side was no longer able to send more
than tune.ssl.maxrecord at a time in SSL.

To fix the issue, we now count the HTX overhead of HTX streams to be able to
set CF_STREAMER/CF_STREAMER_FAST flags on a channel.

This patch relies on folloing commits:

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

The series must be backported as far as 2.2.

(cherry picked from commit 24409a5caa902de68e50636399f86345abeb8f65)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 0b25b6abca084e65b7cc42e554eaf734c7e4453d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 5b5d7b83f9b943f559da5d432a6b8b0d3030c04e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 774c0bdf6ca651a2fccd80e04e4b853baff58c09)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed