Comparison

net/xmppserver_listener.lua @ 1951:632039101699

xmppserver_listener: More forcefully close s2s connections (fixes fd leak)
author Matthew Wild <mwild1@gmail.com>
date Wed, 14 Oct 2009 14:07:50 +0100
parent 1617:c6e175a0d83b
child 1953:64538c620450
child 1954:4ef18b2dcc21
comparison
equal deleted inserted replaced
1949:e3d777d76b1a 1951:632039101699
97 session.sends2s(reason); 97 session.sends2s(reason);
98 end 98 end
99 end 99 end
100 end 100 end
101 session.sends2s("</stream:stream>"); 101 session.sends2s("</stream:stream>");
102 if sesson.notopen or not session.conn.close() then
103 session.conn.close(true); -- Force FIXME: timer?
104 end
102 session.conn.close(); 105 session.conn.close();
103 xmppserver.disconnect(session.conn, "stream error"); 106 xmppserver.disconnect(session.conn, "stream error");
104 end 107 end
105 end 108 end
106 109