]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: Be sure to set HTTP analysers when creating an HTX stream
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Mar 2021 16:09:27 +0000 (17:09 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 09:06:47 +0000 (11:06 +0200)
commit57e4a1bf44598bc0f62e10da8778d762c976d9dc
tree2c9b22c7a1aec8bffceb95543d37d9ae3b377de1
parente13ee703d2b21c85eb1587af618aced3daf9fbeb
MINOR: stream: Be sure to set HTTP analysers when creating an HTX stream

Always set frontend HTTP analysers when an HTX stream is created. It is only
useful in case a destructive HTTP upgrades (TCP>H2) because the frontend is
a TCP proxy.

In fact, to be strict, we must only set these analysers when the upgrade is
performed before setting the backend (it is not supported yet, but this
patch is required to do so), in the frontend part. If the upgrade happens
when the backend is set, it means the HTTP processing is just the backend
buisness. But there is no way to make the difference when a stream is
created, at least for now.
src/stream.c