Skip to content
Snippets Groups Projects
Verified Commit fc2c85ff authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Increase initial connection timeout for LibreNMS client

parent 8d105c9c
No related branches found
No related tags found
1 merge request!268Feature/hotfixes
......@@ -40,7 +40,7 @@ class LibreNMSClient:
) -> Response:
url = self.base_url + endpoint
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__)
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment