aboutsummaryrefslogtreecommitdiffstats
path: root/net/dns.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2020-06-25 15:34:29 +0100
committerMatthew Wild <mwild1@gmail.com>2020-06-25 15:34:29 +0100
commit6daae1f629f669872221186e7d2f9124fd66873f (patch)
tree59bb42da8838e64a9acb23fa50f3884f05e157e4 /net/dns.lua
parent5e744740f305fdb82046c12c9f60cecc28226faf (diff)
downloadprosody-6daae1f629f669872221186e7d2f9124fd66873f.tar.gz
prosody-6daae1f629f669872221186e7d2f9124fd66873f.zip
net.dns: Reduce default timeout to 5s
Most healthy queries will return well within this time, and the new retry logic should help spread the cost of additional retries.
Diffstat (limited to 'net/dns.lua')
-rw-r--r--net/dns.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua
index ae3f947c..18cf51d6 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -71,7 +71,7 @@ local ztact = { -- public domain 20080404 lua@ztact.com
};
local get, set = ztact.get, ztact.set;
-local default_timeout = 15;
+local default_timeout = 5;
local default_jitter = 1;
local default_retry_jitter = 2;