From 2faf46ad9849f2294d33d134a27ec50e29e8bd02 Mon Sep 17 00:00:00 2001
From: Adam Knapp <adam.knapp@ericsson.com>
Date: Thu, 7 Oct 2021 15:01:23 +0200
Subject: [PATCH] Titan can not handle timers set to more than 25 days bugfix
 #572

Signed-off-by: Adam Knapp <adam.knapp@ericsson.com>
---
 core/Snapshot.cc | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/core/Snapshot.cc b/core/Snapshot.cc
index c1a72932d..dabe0d7dd 100644
--- a/core/Snapshot.cc
+++ b/core/Snapshot.cc
@@ -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;
           }
-- 
GitLab