On Sun, 2011-06-05 at 10:21 +0000, [email protected] wrote:
> Author: markt
> Date: Sun Jun 5 10:21:25 2011
> New Revision: 1132367
>
> URL: http://svn.apache.org/viewvc?rev=1132367&view=rev
> Log:
> Correctly handle range requests when using sendfile and the APR/native HTTP
> connector.
> - "org.apache.tomcat.sendfile.end")).longValue();
> + "org.apache.tomcat.sendfile.end")).longValue() -
> sendfileData.pos;
I don't understand, the code reads:
sendfileData = new AprEndpoint.SendfileData();
sendfileData.fileName = fileName;
sendfileData.start = ((Long) request.getAttribute(
"org.apache.tomcat.sendfile.start")).longValue();
sendfileData.end = ((Long) request.getAttribute(
"org.apache.tomcat.sendfile.end")).longValue() - sendfileData.pos;
So how can sendfileData.pos not be 0 here ?
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]