From 25980eb011133bd007ab2aeeaef9d313b8b529fc Mon Sep 17 00:00:00 2001 From: Aleš Mrázek Date: Fri, 19 Jul 2024 11:38:48 +0200 Subject: manager/utils/request.py: use self.timeout in UnixHTTPConnection --- manager/knot_resolver_manager/utils/requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manager/knot_resolver_manager/utils/requests.py b/manager/knot_resolver_manager/utils/requests.py index 72a4d1fa..e52e54a3 100644 --- a/manager/knot_resolver_manager/utils/requests.py +++ b/manager/knot_resolver_manager/utils/requests.py @@ -115,7 +115,7 @@ class UnixHTTPConnection(HTTPConnection): def connect(self): sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) - sock.settimeout(1) # there is something weird stored in self.timeout + sock.settimeout(self.timeout) sock.connect(self.unix_socket_path) self.sock = sock -- cgit v1.2.3