Mercurial > prosody-hg
comparison plugins/mod_bosh.lua @ 693:d8b793e612a9
BOSH: Make previous fix a bit more efficient
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 12 Jan 2009 02:59:00 +0000 |
| parents | 4a218377f4e3 |
| children | dc67e3cffff4 |
comparison
equal
deleted
inserted
replaced
| 692:4a218377f4e3 | 693:d8b793e612a9 |
|---|---|
| 245 (session.log or log)("debug", "BOSH client inactive too long, destroying session at %d", now); | 245 (session.log or log)("debug", "BOSH client inactive too long, destroying session at %d", now); |
| 246 sessions[session.sid] = nil; | 246 sessions[session.sid] = nil; |
| 247 inactive_sessions[session] = nil; | 247 inactive_sessions[session] = nil; |
| 248 sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds"); | 248 sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds"); |
| 249 end | 249 end |
| 250 elseif not session.type then | 250 else |
| 251 inactive_sessions[session] = nil; | 251 inactive_sessions[session] = nil; |
| 252 end | 252 end |
| 253 end | 253 end |
| 254 end | 254 end |
| 255 | 255 |
