Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
0a0e9817
Commit
0a0e9817
authored
Feb 05, 2014
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5879 from lberruti/ssh_slow_fix
Fix slow ssh
parents
1f9de0c0
75b7a1d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
lib/ansible/runner/connection_plugins/ssh.py
+3
-0
lib/ansible/runner/connection_plugins/ssh_old.py
+3
-0
No files found.
lib/ansible/runner/connection_plugins/ssh.py
View file @
0a0e9817
...
@@ -303,6 +303,9 @@ class Connection(object):
...
@@ -303,6 +303,9 @@ class Connection(object):
# Calling wait while there are still pipes to read can cause a lock
# Calling wait while there are still pipes to read can cause a lock
elif
not
rpipes
and
p
.
poll
()
==
None
:
elif
not
rpipes
and
p
.
poll
()
==
None
:
p
.
wait
()
p
.
wait
()
# the process has finished and the pipes are empty,
# if we loop and do the select it waits all the timeout
break
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
if
C
.
HOST_KEY_CHECKING
and
not_in_host_file
:
if
C
.
HOST_KEY_CHECKING
and
not_in_host_file
:
...
...
lib/ansible/runner/connection_plugins/ssh_old.py
View file @
0a0e9817
...
@@ -261,6 +261,9 @@ class Connection(object):
...
@@ -261,6 +261,9 @@ class Connection(object):
# Calling wait while there are still pipes to read can cause a lock
# Calling wait while there are still pipes to read can cause a lock
elif
not
rpipes
and
p
.
poll
()
==
None
:
elif
not
rpipes
and
p
.
poll
()
==
None
:
p
.
wait
()
p
.
wait
()
# the process has finished and the pipes are empty,
# if we loop and do the select it waits all the timeout
break
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
stdin
.
close
()
# close stdin after we read from stdout (see also issue #848)
if
C
.
HOST_KEY_CHECKING
and
not_in_host_file
:
if
C
.
HOST_KEY_CHECKING
and
not_in_host_file
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment