Software /
code /
prosody
Comparison
net/xmppserver_listener.lua @ 4421:971a66627f7a
s2smanager, xmppserver_listener: Support for connecting to other servers via IPv6
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 22 Oct 2011 18:29:23 +0200 |
parent | 3755:0865524c741d |
child | 4430:607de4c95129 |
comparison
equal
deleted
inserted
replaced
4420:4314eeeed394 | 4421:971a66627f7a |
---|---|
176 end | 176 end |
177 | 177 |
178 function xmppserver.ondisconnect(conn, err) | 178 function xmppserver.ondisconnect(conn, err) |
179 local session = sessions[conn]; | 179 local session = sessions[conn]; |
180 if session then | 180 if session then |
181 if err and err ~= "closed" and session.srv_hosts then | 181 if err and err ~= "closed" then |
182 (session.log or log)("debug", "s2s connection attempt failed: %s", err); | 182 (session.log or log)("debug", "s2s connection attempt failed: %s", err); |
183 if s2s_attempt_connect(session, err) then | 183 if s2s_attempt_connect(session, err) then |
184 (session.log or log)("debug", "...so we're going to try another target"); | 184 (session.log or log)("debug", "...so we're going to try another target"); |
185 return; -- Session lives for now | 185 return; -- Session lives for now |
186 end | 186 end |