mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-10-27 06:31:23 +01:00
It was already forbidden to use HTTP sample fetch functions from lua services. An error is triggered if it happens. However, the error must be extended to any L6/L7 sample fetch functions. Indeed, a lua service is an applet. It totally unexepected for an applet to access to input data in a channel's buffer. These data have not been analyzed yet and are still subject to any change. An applet, lua or not, must never access to "not forwarded" data. Only output data are available. For now, if a lua applet relies on any L6/L7 sampel fetch functions, the behavior is undefined and not consistent. So to fix the issue, hlua flag HLUA_F_MAY_USE_HTTP is renamed to HLUA_F_MAY_USE_CHANNELS_DATA. This flag is used to prevent any lua applet to use L6/L7 sample fetch functions. This patch could be backported to all stable versions.