From 92df670e11e043275c4f9818050108cc0fc21bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Wed, 22 Mar 2023 15:44:31 -0600 Subject: [PATCH] Add timeout to requests --- old/v1.3/integrationUISP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/old/v1.3/integrationUISP.py b/old/v1.3/integrationUISP.py index 32cdeced..b3f67fc4 100644 --- a/old/v1.3/integrationUISP.py +++ b/old/v1.3/integrationUISP.py @@ -11,7 +11,7 @@ def uispRequest(target): from ispConfig import UISPbaseURL, uispAuthToken url = UISPbaseURL + "/nms/api/v2.1/" + target headers = {'accept': 'application/json', 'x-auth-token': uispAuthToken} - r = requests.get(url, headers=headers) + r = requests.get(url, headers=headers, timeout=10) return r.json() def buildFlatGraph():