aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-11-15 13:18:41 -0500
committerMatthew Wild <mwild1@gmail.com>2012-11-15 13:18:41 -0500
commitb466f525b07225b942532b54293891526f281e64 (patch)
tree91174afaf7fa9e050384f3b949228dc6113d4dae /plugins
parent8f3a73f5c58b6e2ef954fc61f8ae84ae71d1ff86 (diff)
downloadprosody-b466f525b07225b942532b54293891526f281e64.tar.gz
prosody-b466f525b07225b942532b54293891526f281e64.zip
mod_bosh: Share sessions and inactive_sessions tables
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bosh.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_bosh.lua b/plugins/mod_bosh.lua
index 350d6b0c..1270a080 100644
--- a/plugins/mod_bosh.lua
+++ b/plugins/mod_bosh.lua
@@ -70,8 +70,8 @@ end
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 = {};