Resetting scan agent timeout to 30 seconds, 60 didn't help with a random

hang issue.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 3 years ago
parent 38f95870bb
commit c449e2edf0
  1. 2
      Anvil/Tools.pm
  2. 2
      Anvil/Tools/ScanCore.pm

@ -834,7 +834,7 @@ sub _set_defaults
$anvil->data->{scancore} = {
timing => {
# Delay between DB connection attempts when no databases are available?
agent_runtime => 60,
agent_runtime => 30,
db_retry_interval => 2,
# Delay between scans?
run_interval => 60,

@ -319,7 +319,7 @@ sub call_scan_agents
$anvil->ScanCore->_scan_directory({directory => $anvil->data->{path}{directories}{scan_agents}});
# Now loop through the agents I found and call them.
my $timeout = 60;
my $timeout = 30;
if ((exists $anvil->data->{scancore}{timing}{agent_runtime}) && ($anvil->data->{scancore}{timing}{agent_runtime} =~ /^\d+$/))
{
$timeout = $anvil->data->{scancore}{timing}{agent_runtime};

Loading…
Cancel
Save