Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2013-08-26 19:09:47 +0000
committerGerrit Code Review @ Eclipse.org2013-08-27 15:53:41 +0000
commit8d4f68576a8d34de1bc2dad5712c457a6a9cb77c (patch)
treedd2dc6e50a54a7bfb29635be786a9eb94b69383d /plugins/org.eclipse.osee.framework.core.client
parent493ce7b5e876e6204d1472102868133b7af7f05b (diff)
downloadorg.eclipse.osee-8d4f68576a8d34de1bc2dad5712c457a6a9cb77c.tar.gz
org.eclipse.osee-8d4f68576a8d34de1bc2dad5712c457a6a9cb77c.tar.xz
org.eclipse.osee-8d4f68576a8d34de1bc2dad5712c457a6a9cb77c.zip
bug[ats_9NJGS]: Client arbitration hangs
Since this action is targed to only the arbitration case, the socket timeout was only exposed on the acquire method call. It may be worthwhile analyzing timeouts for all http calls. Change-Id: I91006c2d949d5a5590fc63e16efd699b5122bee3
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.client')
-rw-r--r--plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/ArbitrationServer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/ArbitrationServer.java b/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/ArbitrationServer.java
index e07c1bc15dc..2203c0127a3 100644
--- a/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/ArbitrationServer.java
+++ b/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/ArbitrationServer.java
@@ -29,6 +29,8 @@ import org.eclipse.osee.framework.logging.OseeLog;
public class ArbitrationServer extends OseeServer {
+ private static final int ONE_SEC_TIMEOUT = 1000;
+
public ArbitrationServer() {
super("Arbitration Server");
}
@@ -46,7 +48,7 @@ public class ArbitrationServer extends OseeServer {
parameters);
outputStream = new ByteArrayOutputStream();
- result = HttpProcessor.acquire(new URL(url), outputStream);
+ result = HttpProcessor.acquire(new URL(url), outputStream, ONE_SEC_TIMEOUT);
setAlive(true);
set(Level.INFO, null, HttpUrlBuilderClient.getInstance().getArbitrationServerPrefix());
if (result.getCode() == HttpURLConnection.HTTP_OK) {

Back to the top