You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2003/08/20 18:30:38 UTC
cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources ProxyDirContext.java
remm 2003/08/20 09:30:38
Modified: catalina/src/share/org/apache/naming/resources
ProxyDirContext.java
Log:
- Fix bug where no resource over 512 bytes would get cached. The problem
was a lack of conversion between bytes and K bytes, introduced a long time
ago (likely) when I made the cache more user friendly to configure.
Revision Changes Path
1.13 +6 -5 jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/ProxyDirContext.java
Index: ProxyDirContext.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/resources/ProxyDirContext.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ProxyDirContext.java 30 Jul 2003 18:35:50 -0000 1.12
+++ ProxyDirContext.java 20 Aug 2003 16:30:38 -0000 1.13
@@ -1561,7 +1561,8 @@
if ((exists) && (entry.resource != null)
&& (entry.resource.getContent() == null)
&& (entry.attributes.getContentLength() >= 0)
- && (entry.attributes.getContentLength() < cacheObjectMaxSize)) {
+ && (entry.attributes.getContentLength() <
+ (cacheObjectMaxSize * 1024))) {
int length = (int) entry.attributes.getContentLength();
// The entry size is 1 + the resource size in KB, if it will be
// cached
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org