From 3ae1bc107c72fb9002a9a2382f92ef1478f73725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20V=C3=A1zquez?= <32303781+avazquezrd@users.noreply.github.com> Date: Thu, 4 Apr 2024 19:34:36 +0200 Subject: [PATCH] call_home: timeout as argument (#557) (#585) --- ncclient/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncclient/manager.py b/ncclient/manager.py index 5307fd3d..9916c679 100644 --- a/ncclient/manager.py +++ b/ncclient/manager.py @@ -191,7 +191,7 @@ def call_home(*args, **kwds): port = kwds.get("port",4334) srv_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) srv_socket.bind((host, port)) - srv_socket.settimeout(10) + srv_socket.settimeout(kwds.get("timeout", 10)) srv_socket.listen() sock, remote_host = srv_socket.accept()