Aurélien D.
Aurélien D.
Maybe a permission issue when running in the container that prevents setrlimit() call from succeeding? While waiting for a "clean" solution, you can try adding `no strict-limits` in the global...
[0001-DRAFT-hlua-working-on-lua-load-and-lua-load-per-thre.patch.txt](https://github.com/haproxy/haproxy/files/9558654/0001-DRAFT-hlua-working-on-lua-load-and-lua-load-per-thre.patch.txt) -- This is a draft. -- It might be more convenient to let the user directly specify the variable index or variable subname from config so that subsequents calls...
I also thought of implementing the missing init() function the way you describe it. It feels more "natural" as when it comes to using those arguments within lua scripts. But...
ae6b568 may cause a program crash when numerous arguments are provided to `lua-load `or `lua-load-per-thread` directives: Stack wasn't checked before pushing the n-arguments, and we could easily overflow the stack...
You're welcome. I guess it's because the pushes are happening very early in the program and lua_checkstack() has not been called that much so far, thus stack size is really...
In your example lua script, shouldn't `txn.c:in_table()` take two arguments? First one being input data and second one being the table where to search for the data? Applying [0001-BUG-MEDIUM-lua-Get-the-arguments-for-running-sample_.txt](https://github.com/haproxy/haproxy/files/9552222/0001-BUG-MEDIUM-lua-Get-the-arguments-for-running-sample_.txt) in...
This is great news! Regarding the crash, even if only one argument is provided to in_table, it should not cause the main process to crash. It seems that implicit arguments...
> Yes, so it was actually a bug in our Lua code where we had a call to `in_table` with one argument, which should have had two arguments. We did...
Happy to learn that you solved it! :) Please leave the issue opened: we'll wait for @cognet to come back so we can fix the bug for good.
Thank you for your update Olivier. This 3rd patch is required to make 0002 handle the case where no table is declared within the proxy: [0003-BUG-MEDIUM-hlua-hlua_lua2arg_check-handle-NULL-stick.patch.txt](https://github.com/haproxy/haproxy/files/9698489/0003-BUG-MEDIUM-hlua-hlua_lua2arg_check-handle-NULL-stick.patch.txt) (Or maybe @cognet could...