Software /
code /
prosody
Comparison
plugins/s2s/mod_s2s.lua @ 4576:79c813c4ecc0
s2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove useless space from mod_s2s code
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Fri, 24 Feb 2012 18:03:27 +0000 |
parent | 4575:e0c4ac7749a6 |
child | 4578:da0528c59c52 |
comparison
equal
deleted
inserted
replaced
4575:e0c4ac7749a6 | 4576:79c813c4ecc0 |
---|---|
253 (session.log or log)("debug", "...so we're going to try another target"); | 253 (session.log or log)("debug", "...so we're going to try another target"); |
254 return true; -- Session lives for now | 254 return true; -- Session lives for now |
255 end | 255 end |
256 end | 256 end |
257 (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed")); | 257 (session.log or log)("info", "s2s disconnected: %s->%s (%s)", tostring(session.from_host), tostring(session.to_host), tostring(err or "closed")); |
258 sessions[session.conn] = nil; | 258 sessions[session.conn] = nil; |
259 s2s_destroy_session(session, err); | 259 s2s_destroy_session(session, err); |
260 end | 260 end |
261 | 261 |
262 function stream_callbacks.error(session, error, data) | 262 function stream_callbacks.error(session, error, data) |
263 if error == "no-stream" then | 263 if error == "no-stream" then |