Commit 3963a64a by brdo

Set keepalive to 5 seconds in paramiko_ssh.py

This update resolves https://github.com/ansible/ansible/issues/6476.
parent 28dc88ac
...@@ -185,6 +185,7 @@ class Connection(object): ...@@ -185,6 +185,7 @@ class Connection(object):
bufsize = 4096 bufsize = 4096
try: try:
chan = self.ssh.get_transport().open_session() chan = self.ssh.get_transport().open_session()
self.ssh.get_transport().set_keepalive(5)
except Exception, e: except Exception, e:
msg = "Failed to open session" msg = "Failed to open session"
if len(str(e)) > 0: if len(str(e)) > 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment