Revert r1132367. There is no issue. I got confused between AprEndpoint.SendfileData...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jun 2011 09:22:44 +0000 (09:22 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 7 Jun 2011 09:22:44 +0000 (09:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1132920 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/http11/Http11AprProcessor.java
webapps/docs/changelog.xml

index d1bc3c7..37fa1b2 100644 (file)
@@ -831,7 +831,7 @@ public class Http11AprProcessor extends AbstractHttp11Processor {
             sendfileData.start = ((Long) request.getAttribute(
                     "org.apache.tomcat.sendfile.start")).longValue();
             sendfileData.end = ((Long) request.getAttribute(
-                    "org.apache.tomcat.sendfile.end")).longValue() - sendfileData.pos;
+                    "org.apache.tomcat.sendfile.end")).longValue();
             return true;
         }
         return false;
index 4fb1b59..b260dc0 100644 (file)
   <subsection name="Coyote">
     <changelog>
       <fix>
-        Correctly handle range requests when using sendfile and the APR/native
-        HTTP connector. (markt)
-      </fix>
-      <fix>
         When parsing the port in the HTTP host header, treat the port as a base
         10 integer rather than a hexadecimal one. (rjung/markt/kkolinko) 
       </fix>