mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
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.
This commit is contained in:
parent
f0d7eb2f4f
commit
e13ee703d2
@ -145,7 +145,7 @@ int frontend_accept(struct stream *s)
|
||||
goto out_free_reqcap; /* no memory */
|
||||
}
|
||||
|
||||
if (fe->http_needed) {
|
||||
if (fe->http_needed || IS_HTX_STRM(s)) {
|
||||
/* we have to allocate header indexes only if we know
|
||||
* that we may make use of them. This of course includes
|
||||
* (mode == PR_MODE_HTTP).
|
||||
|
Loading…
Reference in New Issue
Block a user