From: gmungoc Date: Thu, 29 Sep 2016 09:30:19 +0000 (+0100) Subject: JAL-1903 increase REST reply timeout from 5 to 15 seconds X-Git-Tag: Release_2_10_0~33 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e39a32e4af4800fd0a72bf810dc13b5e2514c409;p=jalview.git JAL-1903 increase REST reply timeout from 5 to 15 seconds --- 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) {