Skip to content

Commit

Permalink
Up timeout further, and expose timeout value in err message (WIP for …
Browse files Browse the repository at this point in the history
…CI).
  • Loading branch information
sangwinc committed Jan 22, 2025
1 parent c466886 commit a695a3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stack/cas/connectorhelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private static function stackmaxima_nocache_call($command) {
$casdebugging = self::$config->casdebugging;
self::$config->casresultscache = 'none';
self::$config->casdebugging = true;
self::$config->castimeout = min(30, self::$config->castimeout);
self::$config->castimeout = min(100, self::$config->castimeout);

$connection = self::make();
$results = $connection->compute($command);
Expand Down
2 changes: 1 addition & 1 deletion stack/cas/installhelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public static function create_auto_maxima_image() {
$ts->instantiate();
if (!$ts->get_valid() || $cs->get_value() != '2') {
$errors = $ts->get_errors();
$errmsg = "Evaluation test failed, errors: $errors";
$errmsg = "Evaluation test failed, errors: $errors . " . stack_utils::get_config()->castimeout;
} else {
// It worked!
$errmsg = '';
Expand Down

0 comments on commit a695a3d

Please sign in to comment.