You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by cs...@apache.org on 2015/07/08 09:51:47 UTC

cxf-dosgi git commit: [DOSGI-221] Use shorter timeout

Repository: cxf-dosgi
Updated Branches:
  refs/heads/master fc700c600 -> 24b8bdb7d


[DOSGI-221] Use shorter timeout


Project: http://git-wip-us.apache.org/repos/asf/cxf-dosgi/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-dosgi/commit/24b8bdb7
Tree: http://git-wip-us.apache.org/repos/asf/cxf-dosgi/tree/24b8bdb7
Diff: http://git-wip-us.apache.org/repos/asf/cxf-dosgi/diff/24b8bdb7

Branch: refs/heads/master
Commit: 24b8bdb7db884ec483167b8257802bdbf09ca7e4
Parents: fc700c6
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Wed Jul 8 09:51:26 2015 +0200
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Wed Jul 8 09:51:26 2015 +0200

----------------------------------------------------------------------
 .../org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-dosgi/blob/24b8bdb7/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java
----------------------------------------------------------------------
diff --git a/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java b/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java
index 1d2ec62..0d94d76 100644
--- a/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java
+++ b/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceManager.java
@@ -43,7 +43,7 @@ import org.slf4j.LoggerFactory;
 public class HttpServiceManager {
 
     private static final Logger LOG = LoggerFactory.getLogger(HttpServiceManager.class);
-    private static final long SERVICE_LOOKUP_TIMEOUT = 100000;
+    private static final long SERVICE_LOOKUP_TIMEOUT = 10000;
     private ServiceTracker tracker;
     private BundleContext bundleContext;
     private Map<Long, String> exportedAliases = Collections.synchronizedMap(new HashMap<Long, String>());
@@ -91,7 +91,7 @@ public class HttpServiceManager {
     protected HttpService getHttpService() {
         Object service = null;
         try {
-            service = tracker.waitForService(120000);
+            service = tracker.waitForService(SERVICE_LOOKUP_TIMEOUT);
         } catch (InterruptedException ex) {
             LOG.warn("waitForService interrupeted", ex);
         }