-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 André,
On 5/20/2011 3:05 AM, André Warnier wrote: > 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. +1 It's dramatically faster for the NIO and APR connectors (which support sendFile). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3WfNgACgkQ9CaO5/Lv0PBR8gCdGfspekR7r0IMlUwy+nCmtpMA 3HYAnRa4g/x4wGr1Y3OQhJ30nGPIBz70 =rV+U -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org