increase default timeout duration
This commit is contained in:
parent
a0ad19ed54
commit
1c85e7b329
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,9 @@ async def getaddrs(server, domain, opts):
|
||||||
if opts.impatient:
|
if opts.impatient:
|
||||||
res.timeout = 5
|
res.timeout = 5
|
||||||
res.lifetime = 2
|
res.lifetime = 2
|
||||||
|
else:
|
||||||
|
res.timeout = 3
|
||||||
|
res.lifetime = 9
|
||||||
res.nameservers = [server]
|
res.nameservers = [server]
|
||||||
try:
|
try:
|
||||||
ans = await res.resolve(domain, "A", search=False)
|
ans = await res.resolve(domain, "A", search=False)
|
||||||
|
|
Loading…
Reference in a new issue