]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: vars: Be able to parse parent scopes for variables
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 Jul 2024 13:57:55 +0000 (15:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Jul 2024 14:39:39 +0000 (16:39 +0200)
commitf93828f229dbd60792e00452aaaf83fcb049a1ed
tree9453d74abef9315c2ba37a5cc711c93f489c8285
parentd430edcda3d80b4a9fb9b49d8d275663841d81c1
MEDIUM: vars: Be able to parse parent scopes for variables

Add session/stream scopes related to the parent. To do so, "psess", "ptxn",
"preq" or "pres" must be used instead of tranditionnal scopes (without the
first "p"). the "proc" scope is not concerned by this change because it is
not linked to a stream. When such scopes are used, a specific flags is added
on the variable description during the variable parsing.

For now, theses scopes are parsed and the variable description is updated
accordingly. But at the end, any operation on the variable value fails.
include/haproxy/vars-t.h
src/vars.c