]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: Add a flag on the lua txn to know in which context it can be used
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Jul 2019 13:09:53 +0000 (15:09 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Jul 2019 09:17:52 +0000 (11:17 +0200)
commitbfab2dddad3ded87617d1e2db54761943d1eb32d
tree0b850798a7cf76a364bea448086cfa2d6ed498e6
parent51fa358432247fe5d7259d9d8a0e08d49d429c73
MINOR: hlua: Add a flag on the lua txn to know in which context it can be used

When a lua action or a lua sample fetch is called, a lua transaction is
created. It is an entry in the stack containing the class TXN. Thanks to it, we
can know the direction (request or response) of the call. But, for some
functions, it is also necessary to know if the buffer is "HTTP ready" for the
given direction. "HTTP ready" means there is a valid HTTP message in the
channel's buffer. So, when a lua action or a lua sample fetch is called, the
flag HLUA_TXN_HTTP_RDY is set if it is appropriate.
include/types/hlua.h
src/hlua.c