You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by William Claxton <wi...@openasia.net> on 2003/04/14 04:04:31 UTC

flushing output to the browser fails

We have a servlet that flushes output to the browser, and it works fine on
Websphere & IIS, but it doesn't work with our Tomcat environment.  Our
environment is RH Linux 8, Apache 2.0, and Tomcat 4.1.18.  We have
connected Apache and Tomcat, using AJP13.

The servlet is doing a lot of backend processing, and needs to keep the
browser connection alive by flushing a status line at the end of each loop.
 The code that handles the output flush is very simple:

try {
	String str = getString("status_message");
	OutputStream fout = (OutputStream) vars.get("_output");
	fout.write(str.getBytes());
	fout.flush();
} catch (Exception err) {}

Is this perhaps a configuration issue with Tomcat or the connector?


        Regards, Bill Claxton [williamc@openasia.net]
        OpenAsia Solutions provides streaming media & payment solutions.
        Check out http://www.openasia.net
........:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org