Comparison

net/dns.lua @ 10959:877ceb4feb6d

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.
author Matthew Wild <mwild1@gmail.com>
date Thu, 25 Jun 2020 15:34:29 +0100
parent 10958:25680ece29c2
child 10976:540f1bc5f082
comparison
equal deleted inserted replaced
10958:25680ece29c2 10959:877ceb4feb6d
69 end 69 end
70 end; 70 end;
71 }; 71 };
72 local get, set = ztact.get, ztact.set; 72 local get, set = ztact.get, ztact.set;
73 73
74 local default_timeout = 15; 74 local default_timeout = 5;
75 local default_jitter = 1; 75 local default_jitter = 1;
76 local default_retry_jitter = 2; 76 local default_retry_jitter = 2;
77 77
78 -------------------------------------------------- module dns 78 -------------------------------------------------- module dns
79 local _ENV = nil; 79 local _ENV = nil;