tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50747] CometProcessor does not flush and close HTTP/1.0 requests
Date Wed, 09 Feb 2011 21:54:12 GMT

--- Comment #6 from Konstantin Kolinko <> 2011-02-09 16:54:08
EST ---
(In reply to comment #3)
> Tomcat could be a little smarter here.

For reference: I filed bug 50748 to deal with setContentLength() improvements.

(In reply to comment #4)
> Regarding the content length. So I guess that should be then like this?
> response.setContentLength(data.getBytes("UTF-8").length);

If you already called getBytes() then use byte[] array that it returns and pass
to an OutputStream. You won't need a Writer. There is no need to do the double

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message