mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Setting keepalive option before opening session
Setting the keepalive option before opening up the paramiko session in order to avoid the slim chance that the connection is stalled in the short time between opening the session and setting up the keepalive. I described the issue I am solving at https://groups.google.com/forum/#!topic/ansible-project/rkwvz3vyvLk
This commit is contained in:
parent
7cd5b13e34
commit
3e992b5824
1 changed files with 14 additions and 14 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue