(i guess)
As i could notice, after about 8k of data being written to the client after the connection has been closed, the serlet gets the IOException.
I think that perhaps tomcat is buffering the data and only when this buffer is full the IOException is thrown, even when we make a explicit call to out.flush().
The strange thing is that when the connection is open, the client receives data in real time, with no buffering or very little buffering.
Has anyone ever had this problem? I tried to call the method response.setBufferSize(0), but it didn't work.
Below is the piece of code that writes the data to the ServletOutputStream.
ServletOutputStream out = response.getOutputStream();
public void send(String s) throws IOException {
out.write(s.getBytes(), 0, s.length());
out.flush();
}thanks in advance, Paulo
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
