Skip to content
Snippets Groups Projects
Commit 96ec5d43 authored by Karel van Klink's avatar Karel van Klink :smiley_cat: Committed by Aleksandr Kurbatov
Browse files

Increase initial connection timeout for LibreNMS client

parent 2ccc756a
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !267. Comments created here will be created in the context of that merge request.
...@@ -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