You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Markus Letschka <ma...@nms.at> on 2001/11/07 18:33:26 UTC
WarpResponse BugFix?!
hello!
while porting an app from ajp13 to warp-conn we faced the problem that
response.flushBuffer()s didn't flush. i found out that this is because of
the communication via WarpPackets, which are of 64k size by default.
this is a nasty problem because the app needs to push some initial data to
the client browser immediately ("please wait...") before doing some very
slow db & xml stuff...
i fixed it by implementing method flushBuffer() in class WarpResponse:
public void flushBuffer() throws IOException {
localstream.flush();
super.flushBuffer();
}
i think this should send a (usually smaller than 64k) WarpPacket immediately
after calling response.flushBuffer() in the servlet code and therefore solve
the problem. it seems to work perfectly, but i'm not sure that there are no
side-effects...
hope my mail is helpful...
if anyone can afford some time please give me a short reply if my bugfix is
a really bugfix or just a dangerous workaround :-)
thanks very much & bye!
letscho
sicksolutions.com
Austria
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>