Skip to content

Commit

Permalink
increase https timeout. Fixes CiscoDevNet#18 CiscoDevNet#53 CiscoDevN…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvrugt committed Sep 24, 2024
1 parent 940a475 commit 2b63422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/httpapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def _send_request(self, url_path, data=None, method="GET", headers=None):
# ex:
# connection.send(url, data, method=http_method, headers=BASE_HEADERS)
method = method.upper()
conn = http.client.HTTPSConnection(self._host, timeout=10, context=ssl._create_unverified_context())
timeout = 60 if method == "POST" else 30
conn = http.client.HTTPSConnection(self._host, timeout=timeout, context=ssl._create_unverified_context())
conn.request(method, url_path, data, headers)
# response
response = conn.getresponse()
Expand Down

0 comments on commit 2b63422

Please sign in to comment.