Hi everyone !

At the project we use the Tomcat 5.0 and implement it under this version, 
yesterday we make a atualization of the container using the Tomcat 5.5.14, but 
I found a problem with the buffer, at the 5.0 when call the method flush() ou 
flushbuffer() the container send to the client screen everithing and clean the 
buffer, but now at this new version they only send it when the buffer has a 
minimum size and not when I call it to flush the buffer, anyone see this 
"problem" and know how can I fix it at the application, because at the 5.0 it 
work wonderful. I send the code that I use at the tests.

[code]
...
String texto = "<!-- ACERTANDO BUFFER DO NAVEGADOR IE -->\n";

PrintWriter out = response.getWriter();
out.println(response.getBufferSize());

while (true)
{
    out.println(texto);
    out.flush(); 
    response.flushBuffer();

    try {
        Thread.sleep(1000L);
    } catch (InterruptedException e) {
        e.printStackTrace();
    }
}
...
[/code]

Thanks,

Marcio Camurati

Reply via email to