You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alan Chaney <al...@compulsivecreative.com> on 2008/01/24 20:14:21 UTC

Advanced IO documentation in Tomcat 6 - Asynchronous writes

To help save someone else a bit of perplexity and confusion there 
appears to be a couple of slight errors in the Asynchronous writes 
section of the tomcat-6-0-doc/aio.html page.

>  Any servlet can instruct Tomcat to perform a sendfile call by setting the appropriate response attributes. When using sendfile...


>     * 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


1. You actually set REQUEST attributes not response attributes (as of 
course there is no such thing as a response attribute)

2. The 3rd attribute is of course org.apache.tomcat.sendfile.end

However the actual code works just fine and thats probably the most 
important bit!

Regards

Alan

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org