liquid_feedback_frontend

view app/main/_prefork/10_init.lua @ 1158:e9f6ae14bc72

Updated event notifications and moved code from config to prefork initializer
author bsw
date Tue Mar 24 11:50:08 2015 +0100 (2015-03-24)
parents
children 51a17a0e26e9 93b32111526f
line source
1 if not config.fork then
2 config.fork = {}
3 end
5 if not config.fork.pre then
6 config.fork.pre = 4
7 end
9 if not config.fork.max then
10 config.fork.max = 8
11 end
13 if not config.fork.delay then
14 config.fork.delay = 1
15 end
17 if not config.port then
18 config.port = 8080
19 end
21 if config.localhost == nil then
22 config.localhost = true
23 end
25 listen{
26 { proto = "tcp4", port = config.port, localhost = true },
27 { proto = "interval", delay = 5, handler = function()
28 Event:send_pending_notifications()
29 end },
30 pre_fork = config.fork.pre,
31 max_fork = config.fork.max,
32 fork_delay = config.fork.delay
33 }
35 execute.inner()

Impressum / About Us