aboutsummaryrefslogtreecommitdiffstats
path: root/jrt
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-12-16 13:14:23 +0000
committerArne H Juul <arnej@yahooinc.com>2021-12-16 14:03:53 +0000
commitf3815285d89f687857f827a53f228814f00340fa (patch)
tree10f25482631e3724ce2ebfae3158f8e5c6d25dbb /jrt
parent41c475e48639b9eeee17d842ffbb96825605a339 (diff)
Revert "make select timeout tunable with system property"
This reverts commit 31912f8d2f12fd741b9f1e070abc65ec56932bf4.
Diffstat (limited to 'jrt')
-rw-r--r--jrt/src/com/yahoo/jrt/TransportThread.java9
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);
}