diff options
Diffstat (limited to 'jrt')
-rw-r--r-- | jrt/src/com/yahoo/jrt/TransportThread.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/jrt/src/com/yahoo/jrt/TransportThread.java b/jrt/src/com/yahoo/jrt/TransportThread.java index fdb5fca891c..a3f1773c814 100644 --- a/jrt/src/com/yahoo/jrt/TransportThread.java +++ b/jrt/src/com/yahoo/jrt/TransportThread.java @@ -20,13 +20,6 @@ public class TransportThread { private static final int CLOSING = 2; private static final int CLOSED = 3; - private static final int SELECT_TIMEOUT_MS = getSelectTimeoutMs(); - - private static int getSelectTimeoutMs() { - // can override with a System property - return Integer.getInteger("vespa.jrt.select.timeout", 100); - } - private class Run implements Runnable { public void run() { try { @@ -318,7 +311,7 @@ public class TransportThread { // perform I/O selection try { - selector.select(SELECT_TIMEOUT_MS); + selector.select(100); } catch (IOException e) { log.log(Level.WARNING, "error during select", e); } |