You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Nokleberg <ch...@sixlegs.com> on 2002/07/10 22:12:39 UTC

DefaultServlet missing call to flushBuffer()?

I'm using filters to wrap a response and return a special
ServletOutputStream. If my class extends BufferedOutputStream,
index.html gets cut off when passed through the filter. If I just
extend FilterOutputStream, it works fine.

I'm guessing this is because the DefaultServlet is not calling
flushBuffer() on the ServletOutputStream. I think you would want
to do this in the copy(ResourceInfo, ServletOutputStream) method,
around the point where close the input stream.

Thanks,
Chris

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>