On Wed, 28 Oct 2015 21:18:42 +0100 PiBa-NL <[email protected]> wrote:
> Op 28-10-2015 om 9:28 schreef Thierry FOURNIER: > > Hi List, > > > > I wrote a Lua advanced documentation. This explain the Lua integration > > in HAProxy, the reason of some choices. Some traps and Lua code with > > advanced comments. > > > > This doc is not terminated, but I want to release a first version. I > > will fill the missing points later. > > > > unfortunatelly I have some difficulties to write in english, if anyone > > wants to correct my doc, it will be welcome. > > > > Thank you, > > Thierry > Hi Thierry, > > Thanks for the doc ! Thanks for read it ;) > Ive changed a few words here and there.. Updated doc attached. > Probably there is some more to correct for the more native English > speaking/writing people. > > I haven't tried to check it myself, but didn't see it in either of the > documents how often is a function from core.register_task called? Or > should it contain a loop+sleep ? Perhaps a small example could be added? Ok, this is a good comment ! My explaination was not clear. I will improve the explaination. For your information, the function associated with "core.register_task()" is executed once, if you want that the function does anything each period of time, you can use a core.sleep(). I will add an example. Thierry

