tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Claxton <willi...@openasia.net>
Subject flushing output to the browser fails
Date Mon, 14 Apr 2003 02:04:31 GMT
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


Mime
View raw message