Skip to content

Commit fb8bda2

Browse files
committed
fix(requests): reduce login timeout
1 parent 0ce618f commit fb8bda2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hpecp/client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,9 @@ def create_session(self):
489489
response = None
490490
try:
491491
self.log.debug("REQ: {} : {} {}".format("Login", "post", url))
492-
response = requests.post(url, json=auth, verify=self.verify_ssl)
492+
response = requests.post(
493+
url, json=auth, verify=self.verify_ssl, timeout=10
494+
) # 10 seconds
493495
response.raise_for_status()
494496

495497
except requests.exceptions.ConnectionError as e:

0 commit comments

Comments
 (0)