tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Tomcat download stream gets broken
Date Fri, 20 May 2011 07:05:31 GMT
Christopher Schultz wrote:
> Hash: SHA1
> Rob,
> On 5/19/2011 12:29 PM, Rob GB wrote:
>> Someone suggested commons IO could provide some cool stream APIs,
>> I'll try all recommendations, including asynchronous writes.
> Why not just let the DefaulsServlet serve the files?

I was also wondering about that, but then I figured that the code shown may just be part 
of a broader application which creates the file on-the-fly prior to the download.

But sendfile() seems to be a way to do all this more efficiently.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message