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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user