Lower the timeout for each DNS resolution attempt
This commit is contained in:
parent
3c06568ed5
commit
5fcf08a415
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ def default_resolver():
|
||||||
is available. Otherwise, ``None``.
|
is available. Otherwise, ``None``.
|
||||||
"""
|
"""
|
||||||
if AIODNS_AVAILABLE:
|
if AIODNS_AVAILABLE:
|
||||||
return aiodns.DNSResolver(loop=asyncio.get_event_loop())
|
return aiodns.DNSResolver(loop=asyncio.get_event_loop(),
|
||||||
|
tries=1,
|
||||||
|
timeout=1.0)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue