MINOR: lua: move the tcp service storage outside of appctx.ctx
authorWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 12:07:13 +0000 (14:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:36 +0000 (18:13 +0200)
commite23f33bbfe68273e93bed09150304f4f120605fe
tree3861ebef5a37a6c365fc15d4a45046ae00d99f55
parent5321da9df086c136731c803cd077bc8005a70c70
MINOR: lua: move the tcp service storage outside of appctx.ctx

The use-service mechanism for Lua in TCP mode relies on the
hlua_tcp storage in appctx->ctx. We can move its definition to
hlua.c and simply use appctx_reserve_svcctx() to reserve and access
the stoage. One tiny side effect is that the task dump used in panics
will not show anymore the Lua call stack in its trace. For this a
better API is needed from the Lua code to expose a function that does
the job from an appctx.
include/haproxy/applet-t.h
src/debug.c
src/hlua.c