mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-04 05:04:22 -07:00
Merge pull request #9462 from tkinz27/paramiko_keepalive
Setting keepalive option before opening session
This commit is contained in:
commit
4168a3e858
1 changed files with 14 additions and 14 deletions
|
@ -194,8 +194,8 @@ class Connection(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
||||||
chan = self.ssh.get_transport().open_session()
|
|
||||||
self.ssh.get_transport().set_keepalive(5)
|
self.ssh.get_transport().set_keepalive(5)
|
||||||
|
chan = self.ssh.get_transport().open_session()
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue