From: remm Date: Tue, 5 Dec 2006 13:49:08 +0000 (+0000) Subject: - Disable TLD cache for now until further refactoring, since I have found it was... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9df00434588745b48a2ec002eb056155b967ca30;p=tomcat7.0 - Disable TLD cache for now until further refactoring, since I have found it was not consistent with Jasper. - Don't mutate keepAliveTimeout value in AprEndpoint. git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@482650 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/startup/TldConfig.java b/java/org/apache/catalina/startup/TldConfig.java index 5affe35e9..91d0d8e49 100644 --- a/java/org/apache/catalina/startup/TldConfig.java +++ b/java/org/apache/catalina/startup/TldConfig.java @@ -255,7 +255,7 @@ public final class TldConfig { if (context instanceof StandardContext) { File workDir= (File) ((StandardContext)context).getServletContext().getAttribute(Globals.WORK_DIR_ATTR); - tldCache=new File( workDir, "tldCache.ser"); + //tldCache=new File( workDir, "tldCache.ser"); } // Option to not rescan diff --git a/java/org/apache/tomcat/util/net/AprEndpoint.java b/java/org/apache/tomcat/util/net/AprEndpoint.java index 6d6b000f8..d52e0010a 100644 --- a/java/org/apache/tomcat/util/net/AprEndpoint.java +++ b/java/org/apache/tomcat/util/net/AprEndpoint.java @@ -652,11 +652,6 @@ public class AprEndpoint { } } - // Initialize keepalive timeout if it has not been set - if (keepAliveTimeout == -1) { - keepAliveTimeout = soTimeout; - } - // Delay accepting of new connections until data is available // Only Linux kernels 2.4 + have that implemented // on other platforms this call is noop and will return APR_ENOTIMPL. @@ -1151,12 +1146,15 @@ public class AprEndpoint { /** * Create the poller. With some versions of APR, the maximum poller size will - * be 62 (reocmpiling APR is necessary to remove this limitation). + * be 62 (recompiling APR is necessary to remove this limitation). */ protected void init() { pool = Pool.create(serverSockPool); int size = pollerSize / pollerThreadCount; int timeout = keepAliveTimeout; + if (timeout < 0) { + timeout = soTimeout; + } if (comet) { // FIXME: Find an appropriate timeout value, for now, "longer than usual" // semms appropriate