diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-14 16:13:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-14 16:13:56 +0200 |
commit | 239ebf1d77c7bba39ab2c2ec29d4773c87c2b809 (patch) | |
tree | 315559f6d6a34eaf41d48b8d597c792dc4ae5456 | |
parent | 95f8eea9ca63cb7f29c8e12fb684b6042c6af39b (diff) | |
download | prosody-239ebf1d77c7bba39ab2c2ec29d4773c87c2b809.tar.gz prosody-239ebf1d77c7bba39ab2c2ec29d4773c87c2b809.zip |
mod_s2s: Log a message before trying the next SRV record
This was the only spot where it did `ip_hosts = nil` without logging
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua index 038d84a5..2fbcae26 100644 --- a/plugins/mod_s2s/s2sout.lib.lua +++ b/plugins/mod_s2s/s2sout.lib.lua @@ -252,6 +252,7 @@ function s2sout.try_connect(host_session, connect_host, connect_port, err) 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); |