aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-06-28 12:02:10 +0100
committerMatthew Wild <mwild1@gmail.com>2020-06-28 12:02:10 +0100
commitfb5059547f3171087410344fcf0bffcb8f5f1433 (patch)
tree019f7e1a98d3803df4cbb5d1b497d3000a82d537 /net
parentfb6356059181107d3d285088abe05dc20d4e8e8f (diff)
downloadprosody-fb5059547f3171087410344fcf0bffcb8f5f1433.tar.gz
prosody-fb5059547f3171087410344fcf0bffcb8f5f1433.zip
net.dns: Disable jitter for default resolver (used by blocking dns.lookup() calls)
This fixes 'prosodyctl check dns' being slow.
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua
index 18cf51d6..17119152 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -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(...);