Increase firmware upload timeout from 120s to 600s
A 27 MB firmware file can take well over 2 minutes for the IOM BMC to receive and acknowledge, especially if it processes the file before responding. 600 seconds (10 minutes) gives enough headroom. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -93,7 +93,7 @@ def _redfish_upload_firmware(password: str, host: str, fw_path: str) -> tuple:
|
||||
},
|
||||
)
|
||||
try:
|
||||
with urllib.request.urlopen(req, context=ctx, timeout=120) as resp:
|
||||
with urllib.request.urlopen(req, context=ctx, timeout=600) as resp:
|
||||
raw = resp.read().decode("utf-8", errors="replace")
|
||||
try:
|
||||
return True, json.loads(raw) if raw.strip() else {}
|
||||
|
||||
Reference in New Issue
Block a user