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%.
This commit is contained in:
Johannes Mockenhaupt 2017-11-24 23:00:29 +01:00
parent 44ccbc06a0
commit b8e320ae6f
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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