mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Set keepalive to 5 seconds in paramiko_ssh.py
This update resolves https://github.com/ansible/ansible/issues/6476.
This commit is contained in:
parent
28dc88ac23
commit
3963a64a4f
1 changed files with 1 additions and 0 deletions
|
@ -185,6 +185,7 @@ class Connection(object):
|
|||
bufsize = 4096
|
||||
try:
|
||||
chan = self.ssh.get_transport().open_session()
|
||||
self.ssh.get_transport().set_keepalive(5)
|
||||
except Exception, e:
|
||||
msg = "Failed to open session"
|
||||
if len(str(e)) > 0:
|
||||
|
|
Loading…
Reference in a new issue