Software /
code /
prosody
Changeset
7638:a23b5cb8c22b
mod_s2s: Fire event when s2s connection fails
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 27 Aug 2016 13:40:10 +0100 |
parents | 7635:6879a220917b |
children | 7639:eab307f7435c 7642:2dcb402c4a0d |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Fri Aug 26 16:42:14 2016 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Sat Aug 27 13:40:10 2016 +0100 @@ -634,6 +634,7 @@ if s2sout.attempt_connection(session, err) then return; -- Session lives for now end + hosts[session.from_host].events.fire_event("s2s-connect-failure", { session = session, err = err }); end (session.log or log)("debug", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "connection closed")); s2s_destroy_session(session, err);