Commit ac5cb097 authored by Francesc Guasch's avatar Francesc Guasch
Browse files

refactor: timeout for check machine ports

parent 833ba588
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment