mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
xmppserver_listener: More forcefully close s2s connections (fixes fd leak)
This commit is contained in:
parent
3967579413
commit
1fe62686b1
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ local function session_close(session, reason)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
session.sends2s("</stream:stream>");
|
session.sends2s("</stream:stream>");
|
||||||
|
if sesson.notopen or not session.conn.close() then
|
||||||
|
session.conn.close(true); -- Force FIXME: timer?
|
||||||
|
end
|
||||||
session.conn.close();
|
session.conn.close();
|
||||||
xmppserver.disconnect(session.conn, "stream error");
|
xmppserver.disconnect(session.conn, "stream error");
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue