tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Wilkins <gr...@mortbay.com>
Subject compression filter flushBuffer
Date Sun, 03 Mar 2002 13:26:39 GMT

The CompressionServletResponseWrapper.flushBuffer method does not
flush the writer if it exists.  A PrintWriter may buffer some characters,
so the method should be:

     public void flushBuffer() throws IOException {
         //  System.out.println("flush buffer @ CompressionServletResponseWrapper");
         if (writer!=null)
             writer.flush();
         else
             ((CompressionResponseStream)stream).flush();
     }

regards


-- 
Greg Wilkins<gregw@mortbay.com>          GB  Phone: +44-(0)7092063462
Mort Bay Consulting Australia and UK.    Mbl Phone: +61-(0)4 17786631
http://www.mortbay.com                   AU  Phone: +61-(0)2 98107029


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message