Skip to content
Snippets Groups Projects
Commit 99ec50a2 authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Mohammad Torkashvand
Browse files

Increase initial connection timeout for LibreNMS client

parent a059fb70
No related branches found
No related tags found
1 merge request!272Draft: Hotfix/2.11.1.manual
Pipeline #89156 canceled
...@@ -40,7 +40,7 @@ class LibreNMSClient: ...@@ -40,7 +40,7 @@ class LibreNMSClient:
) -> Response: ) -> Response:
url = self.base_url + endpoint url = self.base_url + endpoint
logger.debug("LibreNMS - Sending request", extra={"method": method, "endpoint": url, "form_data": data}) logger.debug("LibreNMS - Sending request", extra={"method": method, "endpoint": url, "form_data": data})
result = self.session.request(method, url, json=data, timeout=(0.5, 75)) result = self.session.request(method, url, json=data, timeout=(10, 75))
logger.debug("LibreNMS - Received response", extra=result.__dict__) logger.debug("LibreNMS - Received response", extra=result.__dict__)
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment