]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: lua: the function returns anything
authorThierry Fournier <thierry.fournier@ozon.io>
Thu, 8 Mar 2018 08:54:32 +0000 (09:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 26 Mar 2018 09:11:23 +0000 (11:11 +0200)
commite9636f192a5c312424b7598ca182b0425827b08b
tree655ded853aba9243076f5ce4501771d0abeb0998
parentf93f0935c91afdc0262645e7b85b6b2a9bd7b57b
BUG/MINOR: lua: the function returns anything

The output of these function indicates that one element is pushed in
the stack, but no element is set in the stack. Actually, if anyone
read the value returned by this function, is gets "something"
present in the stack.

This patch is a complement of these one: 119a5f10e47f3507e58116

The LuaSocket documentation tell anything about the returned value,
but the effective code set an integer of value one.

   https://github.com/diegonehab/luasocket/blob/316a9455b9cb4637fe6e62b20fbe05f5141fec54/src/timeout.c#L172

Thanks to Tim for the bug report.

This patch should be backported in all version from 1.6
src/hlua.c