Software /
code /
prosody
Changeset
8910:28ec1e024379
mod_s2s: Log a message before trying the next SRV record
This was the only spot where it did `ip_hosts = nil` without logging
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 14 Jun 2018 16:13:56 +0200 |
parents | 8909:dbb5ec6885fe |
children | 8911:cea6165a03d0 |
files | plugins/mod_s2s/s2sout.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua Sun Jun 10 17:56:38 2018 +0200 +++ b/plugins/mod_s2s/s2sout.lib.lua Thu Jun 14 16:13:56 2018 +0200 @@ -252,6 +252,7 @@ elseif host_session.ip_hosts and #host_session.ip_hosts > host_session.ip_choice then -- Not our first attempt, and we also have IPs left to try s2sout.try_next_ip(host_session); else + log("debug", "Out of IP addresses, trying next SRV record (if any)"); host_session.ip_hosts = nil; if not s2sout.attempt_connection(host_session, "out of IP addresses") then -- Retry if we can log("debug", "No other records to try for %s - destroying", host_session.to_host);