Mercurial > prosody-hg
diff plugins/mod_bosh.lua @ 5182:9b93b0698d7e
Merge 0.9->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 15 Nov 2012 14:07:53 -0500 |
| parents | f3662fea95d9 |
| children | ca30b21946ef |
line wrap: on
line diff
--- a/plugins/mod_bosh.lua Sun Nov 11 23:48:38 2012 +0100 +++ b/plugins/mod_bosh.lua Thu Nov 15 14:07:53 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 = {};
