Qualys timeout 300s for bulk hostasset search
This commit is contained in:
parent
d24afa37b2
commit
f66d728d2d
@ -417,7 +417,7 @@ def get_vuln_counts(db, ip_list, force_refresh=False):
|
|||||||
"output_format": "XML",
|
"output_format": "XML",
|
||||||
},
|
},
|
||||||
auth=(qualys_user, qualys_pass),
|
auth=(qualys_user, qualys_pass),
|
||||||
verify=False, timeout=120, proxies=proxies,
|
verify=False, timeout=300, proxies=proxies,
|
||||||
headers={"X-Requested-With": "Python"},
|
headers={"X-Requested-With": "Python"},
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
@ -581,7 +581,7 @@ def _refresh_all_agents_impl(db):
|
|||||||
r = requests.post(
|
r = requests.post(
|
||||||
f"{qualys_url}/qps/rest/2.0/search/am/hostasset",
|
f"{qualys_url}/qps/rest/2.0/search/am/hostasset",
|
||||||
json=payload, auth=(qualys_user, qualys_pass),
|
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"})
|
headers={"X-Requested-With": "PatchCenter", "Content-Type": "application/json"})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
return {"ok": False, "msg": f"page {stats['pages']}: {e}", **stats}
|
return {"ok": False, "msg": f"page {stats['pages']}: {e}", **stats}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user