]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx: Deprecate the option 'http-tunnel' and ignore it in HTX
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 26 Mar 2019 20:37:23 +0000 (21:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
commit6c9bbb226500147babe1069d40243df54c075c7f
tree9a2b00042296bc986bc5b022744a74a1082f8681
parentf1449b785e02b8563f2e398c75a5be36379ca8b6
MEDIUM: htx: Deprecate the option 'http-tunnel' and ignore it in HTX

The option http-tunnel disables any HTTP processing past the first
transaction. In HTX, it works for full h1 transactions. As for the legacy HTTP,
it is a workaround, but it works. But it is impossible to make it works with an
h2 connection. In such case, it has no effect, the stream is closed at the end
of the transaction. So to avoid any inconsistancies between h1 and h2
connections, this option is now always ignored when the HTX is enabled. It is
also a good opportinity to deprecate an old and ugly option. A warning is
emitted during HAProxy startup to encourage users to remove this option.

Note that in legacy HTTP, this option only works with full h1 transactions
too. If an h2 connection is established on a frontend with this option enabled,
it will have no effect at all. But we keep it for the legacy HTTP for
compatibility purpose. It will be removed with the legacy HTTP.

So to be short, if you have to really (REALLY) use it, it will only work for
legacy HTTP frontends with H1 clients.

The documentation has been updated accordingly.

This patch must be backported to 1.9. It is not strictly speaking required but
it will ease futur backports.
doc/configuration.txt
src/cfgparse.c
src/mux_h1.c
src/proto_htx.c