Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
bff480c
)
Enable paramiko ssh keepalive (10s)
42/3042/6
author
Miroslav Miklus
<mmiklus@cisco.com>
Wed, 21 Sep 2016 14:59:57 +0000
(16:59 +0200)
committer
Miroslav Miklus
<mmiklus@cisco.com>
Thu, 29 Sep 2016 13:29:02 +0000
(13:29 +0000)
Change-Id: I1e46ad76f033d239ad29d3b6fe00011a4444453d
Signed-off-by: Miroslav Miklus <mmiklus@cisco.com>
resources/libraries/python/ssh.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/ssh.py
b/resources/libraries/python/ssh.py
index
f35b925
..
298c93e
100644
(file)
--- a/
resources/libraries/python/ssh.py
+++ b/
resources/libraries/python/ssh.py
@@
-65,6
+65,8
@@
class SSH(object):
password=node.get('password'), pkey=pkey,
port=node['port'])
+ self._ssh.get_transport().set_keepalive(10)
+
SSH.__existing_connections[node_hash] = self._ssh
logger.trace('connect took {} seconds'.format(time() - start))