MEDIUM: http-ana: Do nothing in wait-for-request analyzer if not htx
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 21 Jan 2021 16:32:58 +0000 (17:32 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:27:48 +0000 (16:27 +0100)
commitda46a0dca702dd6642b8e70a82ce077cd3681ddb
tree612f00d0903794daa056efc1113321c250360838
parent4ef84c9c41108038381bd3d03787fea304af4364
MEDIUM: http-ana: Do nothing in wait-for-request analyzer if not htx

If http_wait_for_request() analyzer is called with a non-htx stream, nothing
is performed and we return immediatly. For now, it is totally unexpected.
But it will be true during TCP to H1 upgrades, once fixed. Indeed, there
will be a transition period during these upgrades. First the mux will be
upgraded and the not the stream, and finally the stream will be upgraded by
the mux once ready. In the meantime, the stream will still be in raw
mode. Nothing will be performed in wait-for-request analyzer because it will
be the mux responsibility to handle errors.

This patch is required to fix the TCP to H1 upgrades.
src/http_ana.c