Software /
code /
prosody
Changeset
10976:540f1bc5f082
net.dns: Disable jitter for default resolver (used by blocking dns.lookup() calls)
This fixes 'prosodyctl check dns' being slow.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 28 Jun 2020 12:02:10 +0100 |
parents | 10975:f997e3e8bc23 |
children | 10977:29b9b679bdbc |
files | net/dns.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/net/dns.lua Sun Jun 28 02:15:25 2020 +0200 +++ b/net/dns.lua Sun Jun 28 12:02:10 2020 +0100 @@ -1191,6 +1191,7 @@ local _resolver = dns.resolver(); dns._resolver = _resolver; +_resolver.jitter, _resolver.retry_jitter = false, false; function dns.lookup(...) -- - - - - - - - - - - - - - - - - - - - - lookup return _resolver:lookup(...);