From e39a32e4af4800fd0a72bf810dc13b5e2514c409 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 29 Sep 2016 10:30:19 +0100 Subject: [PATCH] JAL-1903 increase REST reply timeout from 5 to 15 seconds --- src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java b/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java index c0c7c46..fdcf34f 100644 --- a/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java +++ b/src/ext/edu/ucsf/rbvi/strucviz2/ChimeraManager.java @@ -27,6 +27,10 @@ import ext.edu.ucsf.rbvi.strucviz2.port.ListenerThreads; */ public class ChimeraManager { + private static final int REST_REPLY_TIMEOUT_MS = 15000; + + private static final int CONNECTION_TIMEOUT_MS = 100; + private static final boolean debug = false; private int chimeraRestPort; @@ -782,8 +786,8 @@ public class ChimeraManager BufferedReader response = null; try { - response = HttpClientUtils - .doHttpUrlPost(restUrl, commands, 100, 5000); + response = HttpClientUtils.doHttpUrlPost(restUrl, commands, CONNECTION_TIMEOUT_MS, + REST_REPLY_TIMEOUT_MS); String line = ""; while ((line = response.readLine()) != null) { -- 1.7.10.2