From 40e19074413f55b9a33a351263c7d54db261e1c7 Mon Sep 17 00:00:00 2001 From: pero Date: Fri, 18 May 2007 17:57:16 +0000 Subject: [PATCH] Remove unsused firstReadTimeout attribute Set correct default pollerThreadCount git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@539539 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/tomcat/util/net/NioEndpoint.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/java/org/apache/tomcat/util/net/NioEndpoint.java b/java/org/apache/tomcat/util/net/NioEndpoint.java index 71598a72e..3b3340b1d 100644 --- a/java/org/apache/tomcat/util/net/NioEndpoint.java +++ b/java/org/apache/tomcat/util/net/NioEndpoint.java @@ -32,7 +32,6 @@ import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.security.KeyStore; import java.util.Collection; -import java.util.Comparator; import java.util.Iterator; import java.util.Set; import java.util.StringTokenizer; @@ -430,15 +429,6 @@ public class NioEndpoint { public int getSoTimeout() { return socketProperties.getSoTimeout(); } public void setSoTimeout(int soTimeout) { socketProperties.setSoTimeout(soTimeout); } - - /** - * Timeout on first request read before going to the poller, in ms. - */ - protected int firstReadTimeout = 60000; - public int getFirstReadTimeout() { return firstReadTimeout; } - public void setFirstReadTimeout(int firstReadTimeout) { this.firstReadTimeout = firstReadTimeout; } - - /** * The default is true - the created threads will be * in daemon mode. If set to false, the control thread @@ -478,7 +468,7 @@ public class NioEndpoint { /** * Poller thread count. */ - protected int pollerThreadCount = 0; + protected int pollerThreadCount = 1; public void setPollerThreadCount(int pollerThreadCount) { this.pollerThreadCount = pollerThreadCount; } public int getPollerThreadCount() { return pollerThreadCount; } -- 2.11.0