diff options
author | Matthew Wild <mwild1@gmail.com> | 2020-06-25 15:34:29 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2020-06-25 15:34:29 +0100 |
commit | 7c12d9f38cdc342655af505e18ab98b90411e0a5 (patch) | |
tree | 59bb42da8838e64a9acb23fa50f3884f05e157e4 | |
parent | ac1cff82ae22826868ba6817879bdb01da5d393d (diff) | |
download | prosody-7c12d9f38cdc342655af505e18ab98b90411e0a5.tar.gz prosody-7c12d9f38cdc342655af505e18ab98b90411e0a5.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.
-rw-r--r-- | net/dns.lua | 2 |
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; |