Skip to content
Snippets Groups Projects
Commit 2faf46ad authored by Adam Knapp's avatar Adam Knapp
Browse files

Titan can not handle timers set to more than 25 days bugfix #572


Signed-off-by: default avatarAdam Knapp <adam.knapp@ericsson.com>
parent 7c3b7c2a
No related branches found
No related tags found
1 merge request!208Titan can not handle timers set to more than 25 days bugfix #572
......@@ -1089,17 +1089,6 @@ void TTCN_Snapshot::take_new(boolean block_execution)
pollTimeout = static_cast<int>(floor(block_time*1000));
handleTimer = TRUE;
} else {
// issue a warning: the user probably does not want such
// long waiting
TTCN_warning("The time needed for the first timer "
"expiry is %g seconds. The operating system does "
"not support such long waiting at once. The "
"maximum time of blocking was set to %d seconds "
"(ca. %d days).", block_time, MAX_BLOCK_TIME,
MAX_BLOCK_TIME / 86400);
// also modify the the timeout value to get out
// immediately from the while() loop below
timeout = current_time + (double)MAX_BLOCK_TIME;
pollTimeout = MAX_BLOCK_TIME * 1000;
handleTimer = TRUE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment