From b8e320ae6fc2a9534a8abdd76133058673524efb Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Fri, 24 Nov 2017 23:00:29 +0100 Subject: [PATCH] Increase timeouts. * Disconnect timeout: back from 2.5 to 5s. * Overall command timeout: 4 to 10m (setting basal profile toke 5.5m shifting by 12h and increasing from 100% to 200%. --- .../src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java index ce59f8b219..80d318c46c 100644 --- a/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java +++ b/ruffyscripter/src/main/java/de/jotomo/ruffyscripter/RuffyScripter.java @@ -53,7 +53,7 @@ import de.jotomo.ruffyscripter.commands.SetTbrCommand; public class RuffyScripter implements RuffyCommands { private static final Logger log = LoggerFactory.getLogger(RuffyScripter.class); - private static final long DISCONNECT_TIME_OUT_MS = 2500; + private static final long DISCONNECT_TIME_OUT_MS = 5000; private IRuffyService ruffyService; @@ -305,7 +305,7 @@ public class RuffyScripter implements RuffyCommands { long executionStart = System.currentTimeMillis(); cmdThread.start(); - long overallTimeout = System.currentTimeMillis() + 4 * 60 * 1000; + long overallTimeout = System.currentTimeMillis() + 10 * 60 * 1000; while (cmdThread.isAlive()) { if (!ruffyService.isConnected()) { // on connection loss try to reconnect, confirm warning alerts caused by