Skip to content

Commit

Permalink
Extend timeout for zkg info to 120s
Browse files Browse the repository at this point in the history
  • Loading branch information
timwoj committed Feb 1, 2025
1 parent 8f8fc99 commit b34fb38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cronjob/bro-pkg-web-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function fatal($msg) {
exit(1);
}

function timeout_exec($cmd, &$output, &$retval, $timeout=30) {
function timeout_exec($cmd, &$output, &$retval, $timeout=120) {
$timeout_cmd = "timeout $timeout $cmd";
exec($timeout_cmd, $output, $retval);

Expand All @@ -25,7 +25,7 @@ function timeout_exec($cmd, &$output, &$retval, $timeout=30) {
}
}

function required_exec($cmd, $timeout=30) {
function required_exec($cmd, $timeout=120) {
$output=null;
$retval=null;
timeout_exec($cmd, $output, $retval, $timeout);
Expand Down

0 comments on commit b34fb38

Please sign in to comment.