]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: Use stream type instead of proxy mode when appropriate
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 8 Mar 2021 16:57:53 +0000 (17:57 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 09:06:48 +0000 (11:06 +0200)
commit1bb6afa35d31e04df0bb2611647a7f00b081c9dc
tree507a2d35b00497bbc3c7c0b78fce2b1751689242
parent982e17dcf5461d23c7fd6126130e3da33f4bca52
MINOR: stream: Use stream type instead of proxy mode when appropriate

We now use the stream instead of the proxy to know if we are processing HTTP
data or not. If the stream is an HTX stream, it means we are dealing with
HTTP data. It is more accurate than the proxy mode because when an HTTP
upgrade is performed, the proxy is not changed and only the stream may be
used.

Note that it was not a problem to rely on the proxy because HTTP upgrades
may only happen when an HTTP backend was set. But, we will add the support
of HTTP upgrades on the frontend side, after te tcp-request rules
evaluation.  In this context, we cannot rely on the proxy mode.
src/backend.c
src/hlua.c
src/stream.c