net.dns: Disable jitter for default resolver (used by blocking dns.lookup() calls)

This fixes 'prosodyctl check dns' being slow.
This commit is contained in:
Matthew Wild 2020-06-28 12:02:10 +01:00
parent fb63560591
commit fb5059547f

View file

@ -1191,6 +1191,7 @@ end
local _resolver = dns.resolver();
dns._resolver = _resolver;
_resolver.jitter, _resolver.retry_jitter = false, false;
function dns.lookup(...) -- - - - - - - - - - - - - - - - - - - - - lookup
return _resolver:lookup(...);