Hi Thierry,

Le 04/03/2015 21:20, Cyril Bonté a écrit :
Hi Thierry,

Le 04/03/2015 11:51, Thierry FOURNIER a écrit :
Thank you Cyril for the bug repport. I join the patch that fix this
issue.

Great ! I didn't have time to investigate further.
I can confirm that the patch works well ;-)

I've seen new commits that have been merged on the git repository.
The bad news are that the previous test that I reported (sending a response larger than the buffer) doesn't work anymore :-/
Resulting in :

[ALERT] 067/220744 (27176) : Lua function 'hello_world': execution timeout.

I've also seen this commit : "MEDIUM: lua: use the Lua-5.3 version of the library" [1] This one may be annoying in the short term for some users, because Lua 5.3 is not available in all distributions (for example debian, ubuntu, ...). Currently for such distributions, it requires to recompile Lua 5.3 with a small patch to generate the ".so" dynamic library. For those who want to make some tests, you can have a look at [2] and [3] and the patches they both provide.
Also, we'll have to :
- modify the haproxy Makefile in order to effectively detect Lua 5.3 and not 5.2 anymore (only the comment was modified) - modify the version check in src/hlua.c to trigger an error if the version number is lesser than 503.

[1] http://www.haproxy.org/git?p=haproxy.git;a=commit;h=f90838b71a3c7f84e1d8b4ff85760a35d60c6910
[2] http://www.linuxfromscratch.org/blfs/view/svn/general/lua.html
[3] https://aur.archlinux.org/packages/lua53/


--
Cyril Bonté

Reply via email to