From 28ea23326efae8b9ad891df116375da0255e22e3 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 1 May 2008 21:20:45 +0000 Subject: [PATCH] Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43333 Correct sendfile docs. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@652666 13f79535-47bb-0310-9956-ffa450edef68 --- webapps/docs/aio.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webapps/docs/aio.xml b/webapps/docs/aio.xml index 999d54a76..cc8bd29c5 100644 --- a/webapps/docs/aio.xml +++ b/webapps/docs/aio.xml @@ -327,10 +327,11 @@ public class ChatServlet

Any servlet can instruct Tomcat to perform a sendfile call by setting the appropriate - response attributes. When using sendfile, it is best to ensure that neither the + request attributes. It is also necessary to correctly set the content length + for the response. When using sendfile, it is best to ensure that neither the request or response have been wrapped, since as the response body will be sent later by the connector itself, it cannot be filtered. Other than setting the 3 needed - response attributes, the servlet should not send any response data, but it may use + request attributes, the servlet should not send any response data, but it may use any method which will result in modifying the response header (like setting cookies).

@@ -338,7 +339,7 @@ public class ChatServlet
  • org.apache.tomcat.sendfile.filename: Canonical filename of the file which will be sent as a String
  • org.apache.tomcat.sendfile.start: Start offset as a Long
  • -
  • org.apache.tomcat.sendfile.start: End offset as a Long
  • +
  • org.apache.tomcat.sendfile.end: End offset as a Long
  • -- 2.11.0