aboutsummaryrefslogtreecommitdiffstats
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
commit99974464b36197231849c886ffa8f936c6c71c89 (patch)
tree019f7e1a98d3803df4cbb5d1b497d3000a82d537
parent310ca3f76c608944c62031c0e9cf15ddaeae3f7c (diff)
downloadprosody-99974464b36197231849c886ffa8f936c6c71c89.tar.gz
prosody-99974464b36197231849c886ffa8f936c6c71c89.zip
net.dns: Disable jitter for default resolver (used by blocking dns.lookup() calls)
This fixes 'prosodyctl check dns' being slow.
-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(...);