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"); |