mod_bosh: Fix for 'invalid key to next' error when using BOSH

Mon, 09 Feb 2009 13:32:46 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 09 Feb 2009 13:32:46 +0000
changeset 772
cbe49bb8d51d
parent 771
ecdf72f9b085
child 773
c36edc1934c5

mod_bosh: Fix for 'invalid key to next' error when using BOSH

plugins/mod_bosh.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_bosh.lua	Mon Feb 09 13:31:10 2009 +0000
+++ b/plugins/mod_bosh.lua	Mon Feb 09 13:32:46 2009 +0000
@@ -243,6 +243,7 @@
 				(session.log or log)("debug", "BOSH client inactive too long, destroying session at %d", now);
 				sessions[session.sid]  = nil;
 				inactive_sessions[session] = nil;
+				session.bosh_max_inactive = nil; -- Stop us marking this session as active during destroy
 				sm_destroy_session(session, "BOSH client silent for over "..session.bosh_max_inactive.." seconds");
 			end
 		else

mercurial