tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets DefaultServlet.java
Date Wed, 27 Apr 2005 23:07:31 GMT
remm        2005/04/27 16:07:31

  Modified:    catalina/src/share/org/apache/catalina/servlets
                        DefaultServlet.java
  Log:
  - Better default sendfile size.
  
  Revision  Changes    Path
  1.33      +2 -2      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java
  
  Index: DefaultServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- DefaultServlet.java	20 Apr 2005 16:13:23 -0000	1.32
  +++ DefaultServlet.java	27 Apr 2005 23:07:31 -0000	1.33
  @@ -1489,7 +1489,7 @@
                                     CacheEntry entry,
                                     long length, Range range) {
           if ((entry.resource != null) 
  -            && ((length > 256 * 1024) || (entry.resource.getContent() == null))
  +            && ((length > 80 * 1024) || (entry.resource.getContent() == null))
               && (entry.attributes.getCanonicalPath() != null)
               && (Boolean.TRUE == request.getAttribute("sendfile.support"))
               && (request.getClass().getName().equals("org.apache.catalina.connector.RequestFacade"))
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message