----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

Hi, we are using JSDK2.0 here, and I think we use Jserv 1.1.  When I ran 
this servlet that you gave me, you know what it does? :) After like 10 
lines of output, THEN it starts to flush the way it is supposed to be 
flushing.. So it'll be the 10th or 11th iteration in the while loop, and 
then I start seeing the behavior I expected.

What the heck is wrong with my setup? Is JSDK2.0 /jserv1.1 unable to flush 
properly? or is it some Apache jserv setting??? HELPPPP

Thanks billo.

At 07:46 PM 10/18/2000 -0400, you wrote:
>----------------------------------------------------------------
>BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
>WHEN YOU POST, include all relevant version numbers, log files,
>and configuration files.  Don't make us guess your problem!!!
>----------------------------------------------------------------
>
>
>I have a working servlet that output little chunks of html while a long
>query is happening; I know it works, I can see the packets going
>back to the browser with tcpdump.  Possibly you could post some
>sample code that doesn't work?
>
>Here's a servlet snippet that does flush as it goes (prints a line
>every second).  This works on JServ 1.2 JDK 1.2.2 Solaris 2.7 apache 1.3.12:
>
>         PrintWriter out = null;
>         Vector args = getPathInfoArgs(req);
>         int sleepMS = 1000;
>
>         if (args.size() > 0) {
>             String sleepTime = (String)args.elementAt(0);
>             sleepMS = Integer.parseInt(sleepTime);
>         }
>
>         res.setContentType("text/plain");
>         out = new PrintWriter(res.getOutputStream());
>         int count = 30;
>
>         try {
>           while (count-- > 0) {
>             Thread.sleep(sleepMS);
>             out.println("Slept for " + sleepMS + " ms.");
>             out.flush();
>           }
>         } catch (InterruptedException e) {
>             out.println("Interrupted!");
>         }
>
>         out.close();
>
>good luck.
>
>billo



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to