MINOR: frontend: Create HTTP txn for HTX streams
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Mar 2021 16:08:08 +0000 (17:08 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Apr 2021 09:06:47 +0000 (11:06 +0200)
commite13ee703d2b21c85eb1587af618aced3daf9fbeb
treee452e3b46127133789c61f9f75aeab429eb198b5
parentf0d7eb2f4f3112a363e35fd040614a2af1179e43
MINOR: frontend: Create HTTP txn for HTX streams

When an HTX stream is created, be sure to always create the HTTP txn object,
regardless of the ".http_needed" value of the frontend. That happens when a
destructive HTTP upgrades is performed (TCP>H2). The frontend is a TCP
proxy. If there is no dependency on the HTTP part, the HTTP transaction is
not created at this stage but only when the backend is set. For now, it is
not a problem. But an HTTP txn will be mandatory to fully support TCP to
HTTP upgrades after frontend tcp-request rules evaluation.
src/frontend.c