tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Tomcat download stream gets broken
Date Fri, 20 May 2011 07:05:31 GMT
Christopher Schultz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message