From f3815285d89f687857f827a53f228814f00340fa Mon Sep 17 00:00:00 2001 From: Arne H Juul Date: Thu, 16 Dec 2021 13:14:23 +0000 Subject: Revert "make select timeout tunable with system property" This reverts commit 31912f8d2f12fd741b9f1e070abc65ec56932bf4. --- jrt/src/com/yahoo/jrt/TransportThread.java | 9 +-------- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3