Merge pull request #9462 from tkinz27/paramiko_keepalive

Setting keepalive option before opening session
pull/4420/head
James Cammarata 2014-11-03 11:41:08 -06:00
commit 4168a3e858
1 changed files with 14 additions and 14 deletions

View File

@ -194,8 +194,8 @@ class Connection(object):
try:
chan = self.ssh.get_transport().open_session()
self.ssh.get_transport().set_keepalive(5)
chan = self.ssh.get_transport().open_session()
except Exception, e: