Skip to content

Commit

Permalink
call_home: timeout as argument (ncclient#557) (ncclient#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
avazquezrd authored Apr 4, 2024
1 parent 9e947eb commit 3ae1bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncclient/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3ae1bc1

Please sign in to comment.