From f66d728d2d72f0062754b61f31ef2ab3e94163fa Mon Sep 17 00:00:00 2001 From: Admin MPCZ Date: Tue, 14 Apr 2026 15:37:50 +0200 Subject: [PATCH] Qualys timeout 300s for bulk hostasset search --- app/services/qualys_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/qualys_service.py b/app/services/qualys_service.py index 5b98ce8..a635441 100644 --- a/app/services/qualys_service.py +++ b/app/services/qualys_service.py @@ -417,7 +417,7 @@ def get_vuln_counts(db, ip_list, force_refresh=False): "output_format": "XML", }, auth=(qualys_user, qualys_pass), - verify=False, timeout=120, proxies=proxies, + verify=False, timeout=300, proxies=proxies, headers={"X-Requested-With": "Python"}, ) except Exception: @@ -581,7 +581,7 @@ def _refresh_all_agents_impl(db): r = requests.post( f"{qualys_url}/qps/rest/2.0/search/am/hostasset", json=payload, auth=(qualys_user, qualys_pass), - verify=False, timeout=120, proxies=proxies, + verify=False, timeout=300, proxies=proxies, headers={"X-Requested-With": "PatchCenter", "Content-Type": "application/json"}) except Exception as e: return {"ok": False, "msg": f"page {stats['pages']}: {e}", **stats}