]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: lua: sample fetches based on response doesn't work
authorThierry FOURNIER <tfournier@arpalert.org>
Mon, 2 Nov 2015 09:01:59 +0000 (10:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Nov 2015 09:50:14 +0000 (10:50 +0100)
commitc4eebc8157d3518cfb5f2891a582fa3a2922ff23
tree1a7208b4a472c9893d9a07a2cc497e4dc54f8bea
parent6e01f38e73955766c283b4d0da40098f5b4ebee1
BUG/MEDIUM: lua: sample fetches based on response doesn't work

The direction (request or response) is not propagated in the
sample fecthes called throught Lua. This patch adds the direction
status in some structs (hlua_txn and hlua_smp) to make sure that
the sample fetches will be called with all the information.

The converters can not access to a TXN object, so there are not
impacted the direction. However, the samples used as input of the
Lua converter wrapper are initiliazed with the direction. Thereby,
the struct smp stay consistent.
[wt: needs to be backported to 1.6]
include/types/hlua.h
src/hlua.c