Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
ac5cb097
Commit
ac5cb097
authored
Sep 14, 2021
by
Francesc Guasch
Browse files
refactor: timeout for check machine ports
parent
833ba588
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
ac5cb097
...
...
@@ -3331,6 +3331,7 @@ sub _kill_stale_process($self) {
.
"
WHERE start_time<?
"
.
"
AND ( command = 'refresh_vms' or command = 'screenshot' or command = 'set_time'
"
.
"
OR command = 'open_exposed_ports' OR command='remove'
"
.
"
OR command = 'refresh_machine_ports'
"
.
"
)
"
.
"
AND status <> 'done'
"
.
"
AND start_time IS NOT NULL
"
...
...
@@ -4494,7 +4495,7 @@ sub _cmd_refresh_machine($self, $request) {
$domain
->
client_status
(
1
)
if
$is_active
;
Ravada::
Request
->
refresh_machine_ports
(
id_domain
=>
$domain
->
id
,
uid
=>
$user
->
id
,
retry
=>
20
)
,
timeout
=>
60
,
retry
=>
20
)
if
$is_active
&&
$domain
->
ip
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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