We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b773c commit 0ac3a96Copy full SHA for 0ac3a96
nettacker/core/hostcheck.py
@@ -107,15 +107,14 @@ def _call(use_ai_addrconfig: bool):
107
return _gai_once(host, use_ai_addrconfig, None)
108
109
for use_ai in (True, False):
110
- deadline = time.monotonic() + timeout_sec
111
try:
112
# Run getaddrinfo in a thread so we can enforce timeout
113
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as ex:
114
fut = ex.submit(_call, use_ai)
115
fut.result(timeout=timeout_sec) # raises on timeout or error
116
return True, host.lower()
117
except concurrent.futures.TimeoutError:
118
- return False, None
+ continue
119
except (OSError, socket.gaierror):
120
# DNS resolution failed for this candidate, try next
121
continue
0 commit comments