# HG changeset patch # User Matthew Wild # Date 1353003521 18000 # Node ID f3662fea95d9e8a0166da10291a5ff0712340d60 # Parent add9ad38208efe4de75bf8d2f64da834e7a6df98 mod_bosh: Share sessions and inactive_sessions tables diff -r add9ad38208e -r f3662fea95d9 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Sun Nov 11 23:44:56 2012 +0100 +++ b/plugins/mod_bosh.lua Thu Nov 15 13:18:41 2012 -0500 @@ -70,8 +70,8 @@ local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat; local os_time = os.time; -local sessions = {}; -local inactive_sessions = {}; -- Sessions which have no open requests +-- All sessions, and sessions that have no requests open +local sessions, inactive_sessions = module:shared("sessions", "inactive_sessions"); -- Used to respond to idle sessions (those with waiting requests) local waiting_requests = {};