diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-09 00:09:25 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-09 00:09:25 +0200 |
commit | 14749255694d18a8c80143cd63cee977716fb049 (patch) | |
tree | f206e03d57f1b5fc673d251da07e4ba5eb3c42f7 /plugins/mod_s2s | |
parent | accf9f8c1a0643ca654566a669909a6279371061 (diff) | |
download | prosody-14749255694d18a8c80143cd63cee977716fb049.tar.gz prosody-14749255694d18a8c80143cd63cee977716fb049.zip |
mod_s2s: Fix DNS timeout setting for per-session resolvers (fixes #1167)
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua index cd8553e1..122ab6a9 100644 --- a/plugins/mod_s2s/s2sout.lib.lua +++ b/plugins/mod_s2s/s2sout.lib.lua @@ -30,7 +30,6 @@ local sources = {}; local has_ipv4, has_ipv6; local dns_timeout = module:get_option_number("dns_timeout", 15); -dns.settimeout(dns_timeout); local s2sout = {}; @@ -50,6 +49,7 @@ function s2sout.initiate_connection(host_session) host_session.version = 1; host_session.resolver = adns.resolver(); + host_session.resolver._resolver:settimeout(dns_timeout); -- Kick the connection attempting machine into life if not s2sout.attempt_connection(host_session) then |