]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: lua: implement a simple memory allocator
authorWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2015 16:54:59 +0000 (17:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2015 16:54:59 +0000 (17:54 +0100)
commit32f61e288defa9b4ca077e999dfda40b8e18e0a4
treeaa7b4508bd28a3181426f7c463ee273878d58dfd
parent36d137448429eacbb999c9f25322e5e9f8adffba
MEDIUM: lua: implement a simple memory allocator

Lua supports a memory allocator. This is very important as it's the
only way we can control the amount of memory allocatable by Lua scripts.
That avoids prevents bogus scripts from eating all of the system's memory.
The value can be enforced using tune.lua.maxmem in the global section.
doc/configuration.txt
src/hlua.c