# HG changeset patch # User Matthew Wild # Date 1255525670 -3600 # Node ID 632039101699d65ec64a27cdb39be2c0d6b42df7 # Parent e3d777d76b1ad671c337cc82bef590e415ff589e xmppserver_listener: More forcefully close s2s connections (fixes fd leak) diff -r e3d777d76b1a -r 632039101699 net/xmppserver_listener.lua --- a/net/xmppserver_listener.lua Tue Oct 13 11:12:49 2009 +0100 +++ b/net/xmppserver_listener.lua Wed Oct 14 14:07:50 2009 +0100 @@ -99,6 +99,9 @@ end end session.sends2s(""); + if sesson.notopen or not session.conn.close() then + session.conn.close(true); -- Force FIXME: timer? + end session.conn.close(); xmppserver.disconnect(session.conn, "stream error"); end