Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
966d1aa8
Unverified
Commit
966d1aa8
authored
Jun 09, 2022
by
Rhett Ying
Committed by
GitHub
Jun 09, 2022
Browse files
[Dist] avoid busy ssh connection (#4096)
parent
abcc9cce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
tools/launch.py
tools/launch.py
+2
-0
No files found.
tools/launch.py
View file @
966d1aa8
...
@@ -111,6 +111,8 @@ def execute_remote(
...
@@ -111,6 +111,8 @@ def execute_remote(
thread
=
Thread
(
target
=
run
,
args
=
(
ssh_cmd
,))
thread
=
Thread
(
target
=
run
,
args
=
(
ssh_cmd
,))
thread
.
setDaemon
(
True
)
thread
.
setDaemon
(
True
)
thread
.
start
()
thread
.
start
()
# sleep for a while in case of ssh is rejected by peer due to busy connection
time
.
sleep
(
0.2
)
return
thread
return
thread
def
get_remote_pids
(
ip
,
port
,
cmd_regex
):
def
get_remote_pids
(
ip
,
port
,
cmd_regex
):
...
...
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