2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-04-13 04:11:31 +00:00

Tighten redfish check timeout

The default timeout is overkill in the nodediscover scenario.
Notably, we can receive replies from unreachable IP addresses,
and those will extend rescan to the full timeout.  The devices should
comfortably reply within 3 seconds, making scans exit in
a timely fashion.
This commit is contained in:
Jarrod Johnson
2022-10-07 09:22:37 -04:00
parent 4fed609050
commit d5d0852890

View File

@@ -401,7 +401,7 @@ def check_fish(urldata, port=443, verifycallback=None):
verifycallback = lambda x: True
url, data = urldata
try:
wc = webclient.SecureHTTPConnection(_get_svrip(data), port, verifycallback=verifycallback)
wc = webclient.SecureHTTPConnection(_get_svrip(data), port, verifycallback=verifycallback, timeout=3)
peerinfo = wc.grab_json_response(url)
except socket.error:
return None