]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx: Allow the option http-use-htx to be used on TCP proxies too
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 11 Apr 2019 20:04:08 +0000 (22:04 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
commiteb7098035cc5bbff4291b7908a216c15c5e8a397
tree4f8db7c092c191abb9f61a794385a66a2a890520
parentc0016d8119e28b28332e077ba2d0260f3cb59709
MEDIUM: htx: Allow the option http-use-htx to be used on TCP proxies too

This will be mandatory to allow upgrades from TCP to HTTP in HTX. Of course, raw
buffers will still be used by default on TCP proxies, this option sets or
not. But if you want to handle mux upgrades from a TCP proxy, you must enable
the HTX on it and on all its backends.

There is only a small change in the lua code. Because TCP proxies can be HTX
aware, to exclude TCP services only for HTTP proxies, we must also check the
mode (TCP/HTTP) now.
src/hlua.c
src/proxy.c