]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
manager/utils/request.py: use self.timeout in UnixHTTPConnection docs-develop-mana-voyz6z/deployments/4582
authorAleš Mrázek <ales.mrazek@nic.cz>
Fri, 19 Jul 2024 09:38:48 +0000 (11:38 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Fri, 19 Jul 2024 09:38:48 +0000 (11:38 +0200)
manager/knot_resolver_manager/utils/requests.py

index 72a4d1faf7368ce4f8b87536e71eabe0f25a666a..e52e54a35e266cb3087f4b4a7b37840b4a794ef2 100644 (file)
@@ -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