Diff

plugins/mod_s2s/mod_s2s.lua @ 6380:4220ffb87b22

net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent)
author Matthew Wild <mwild1@gmail.com>
date Fri, 29 Aug 2014 11:54:34 +0100
parent 6378:3cec0eef0b70
child 6382:57d23c26039b
child 6471:95d93c4f9d40
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Fri Aug 29 11:39:56 2014 +0100
+++ b/plugins/mod_s2s/mod_s2s.lua	Fri Aug 29 11:54:34 2014 +0100
@@ -638,6 +638,10 @@
 	initialize_session(session);
 end
 
+function listener.ondetach(conn)
+	sessions[conn] = nil;
+end
+
 function check_auth_policy(event)
 	local host, session = event.host, event.session;
 	local must_secure = secure_auth;