s2smanager, mod_s2s: Move checking DNS timeout option to mod_s2s

This commit is contained in:
Kim Alvefur 2012-05-10 23:05:03 +02:00
parent 2cd39663b6
commit 3713488b27
2 changed files with 2 additions and 5 deletions

View file

@ -17,12 +17,7 @@ local logger_init = require "util.logger".init;
local log = logger_init("s2smanager");
local adns, dns = require "net.adns", require "net.dns";
local config = require "core.configmanager";
local dns_timeout = config.get("*", "core", "dns_timeout") or 15;
--FIXME: s2sout should create its own resolver w/ timeout
dns.settimeout(dns_timeout);
local prosody = _G.prosody;
incoming_s2s = {};