From 3963a64a4f3f8afa42a6da2a0c23d69f94cbc6c5 Mon Sep 17 00:00:00 2001 From: brdo Date: Sat, 15 Mar 2014 11:18:47 -0700 Subject: [PATCH] Set keepalive to 5 seconds in paramiko_ssh.py This update resolves https://github.com/ansible/ansible/issues/6476. --- lib/ansible/runner/connection_plugins/paramiko_ssh.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/runner/connection_plugins/paramiko_ssh.py b/lib/ansible/runner/connection_plugins/paramiko_ssh.py index 3ae76fe547..9c2c7bd529 100644 --- a/lib/ansible/runner/connection_plugins/paramiko_ssh.py +++ b/lib/ansible/runner/connection_plugins/paramiko_ssh.py @@ -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: