clients.lua

changeset 14
1d28dfcd9c94
parent 13
c245afa537bb
child 15
67858d731518
equal deleted inserted replaced
13:c245afa537bb 14:1d28dfcd9c94
34 -- [cookie] = conn 34 -- [cookie] = conn
35 local client_by_cookie = {}; 35 local client_by_cookie = {};
36 -- [conn] = last_active_timestamp 36 -- [conn] = last_active_timestamp
37 local active_clients = {}; 37 local active_clients = {};
38 38
39 local activity_timeout = 20; 39 local activity_timeout = 70;
40 40
41 local function update_have_clients() 41 local function update_have_clients()
42 if have_clients and not next(active_clients) then 42 if have_clients and not next(active_clients) then
43 have_clients = false; 43 have_clients = false;
44 log("debug", "No more clients"); 44 log("debug", "No more clients");

mercurial