Skip to content

Commit 0ac3a96

Browse files
authored
Deadline removed
Signed-off-by: Aarush289 <[email protected]>
1 parent 87b773c commit 0ac3a96

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nettacker/core/hostcheck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,14 @@ def _call(use_ai_addrconfig: bool):
107107
return _gai_once(host, use_ai_addrconfig, None)
108108

109109
for use_ai in (True, False):
110-
deadline = time.monotonic() + timeout_sec
111110
try:
112111
# Run getaddrinfo in a thread so we can enforce timeout
113112
with concurrent.futures.ThreadPoolExecutor(max_workers=1) as ex:
114113
fut = ex.submit(_call, use_ai)
115114
fut.result(timeout=timeout_sec) # raises on timeout or error
116115
return True, host.lower()
117116
except concurrent.futures.TimeoutError:
118-
return False, None
117+
continue
119118
except (OSError, socket.gaierror):
120119
# DNS resolution failed for this candidate, try next
121120
continue

0 commit comments

Comments
 (0)