DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6160>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6160 HttpServletResponse.flushBuffer() fails to flush data to client Summary: HttpServletResponse.flushBuffer() fails to flush data to client Product: Tomcat 4 Version: 4.0.1 Final Platform: PC OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Catalina AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am sending responses from a servlet to a client as several serialized objects. The objects need to be returned to client as soon as they are written to the ObjectOutputStream, instead of all together at one time. So for example, the first object written to the output stream is an ack which needs to get returned immediately. Then, some time later, a collection of objects might follow that are status reports. Finally, the requested data is returned to the client. The following code, called once for each object that is returned to client, correctly flushed the data to the client as each object was written to the output stream when using Tomcat 3.1. However, when using Tomcat 4.0 and 4.0.1 versions none of the objects are returned to the client until the output stream is closed. ... ObjectOutputStream clientOutput = new ObjectOutputStream(response.getOutputStream()); clientOutput.writeObject(data); clientOutput.flush(); response.flushBuffer(); ... where response is instance of HttpServletResponse and data is instance of Serializable. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>