diff options
author | jmisinco | 2013-07-01 17:44:47 +0000 |
---|---|---|
committer | jmisinco | 2013-07-01 19:08:47 +0000 |
commit | c6c61000f8675d99041267b2921094ca1501c2df (patch) | |
tree | d8e77eb4ad0de4957294fcd4473570b11b1d3348 | |
parent | 0651cf8d5d19e8922f357df133978a70bbeaf130 (diff) | |
download | org.eclipse.osee-c6c61000f8675d99041267b2921094ca1501c2df.tar.gz org.eclipse.osee-c6c61000f8675d99041267b2921094ca1501c2df.tar.xz org.eclipse.osee-c6c61000f8675d99041267b2921094ca1501c2df.zip |
bug[ats_M9QX7]: Arbitration response hangs
Change-Id: I9304ce0cc273028601eb306a549a5508e76ef2b3
When a client requests arbitration, the server checks to see what servers
are alive. In some cases, other app servers may be slow to respond but
a socket connection has been established. This change sets a socket read
timeout of 1 second. If the socket connection cannot be established, the
GetMethod will fail as expected.
-rw-r--r-- | plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/HttpProcessor.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/HttpProcessor.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/HttpProcessor.java index 65349632846..1c518b91403 100644 --- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/HttpProcessor.java +++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/util/HttpProcessor.java @@ -167,6 +167,7 @@ public class HttpProcessor { try { HttpMethodParams params = new HttpMethodParams(); params.setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(0, false)); + params.setSoTimeout(1000); method.setParams(params); int responseCode = executeMethod(url, method); if (responseCode == HttpURLConnection.HTTP_NOT_FOUND || responseCode == HttpURLConnection.HTTP_ACCEPTED || responseCode == HttpURLConnection.HTTP_ACCEPTED || responseCode == HttpURLConnection.HTTP_OK) { |