From ee03f52d2044b38e82a1ba61922354663a5cb805 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 14 Jun 2018 16:13:56 +0200 Subject: mod_s2s: Log a message before trying the next SRV record This was the only spot where it did `ip_hosts = nil` without logging --- plugins/mod_s2s/s2sout.lib.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_s2s/s2sout.lib.lua') 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); -- cgit v1.2.3