increase default timeout duration

This commit is contained in:
Connor Olding 2020-09-02 10:38:38 +02:00
parent a0ad19ed54
commit 1c85e7b329

View file

@ -35,6 +35,9 @@ async def getaddrs(server, domain, opts):
if opts.impatient:
res.timeout = 5
res.lifetime = 2
else:
res.timeout = 3
res.lifetime = 9
res.nameservers = [server]
try:
ans = await res.resolve(domain, "A", search=False)