W3C home > Mailing lists > Public > www-jigsaw@w3.org > November to December 2000

Re: Problem streaming HTML from a servlet [jigsaw 2.1.2]

From: Yves Lafon <ylafon@w3.org>
Date: Tue, 5 Dec 2000 16:22:10 +0100 (MET)
To: Greg Kopff <gkopff@powersource.com.au>
cc: <www-jigsaw@w3.org>
Message-ID: <Pine.SOL.4.30.0012051618430.13250-100000@tarantula.inria.fr>
On Tue, 28 Nov 2000, Greg Kopff wrote:

> G'day.
> I'm currently writing a servlet to tail a file (essentially a tail -f).
> The servlet needs to read the file, flush that content to the output
> stream, then wait for more data to appear in the file, read it, flush it etc.
> I'm using Jisaw 2.1.2.  In all the browsers I can find (Win98 Netscape 6,
> Win98 MS Exploder, Linux Netscape 6, Konqueror, even telnetting to port
> 8001) the content is not output to the client following a flush(), and only
> appears after the close() call is made.
> Is this a bug?  Or is the servlet output filtered by Jigsaw (and so not
> flushed by the filter until the close() occurs)?  Is there a work around?

It was a bug, please check the latest version
(http://jigsaw.w3.org/Devel/classes-2.1/20001110/ currently) or the one
from CVS (even fresher, see http://dev.w3.org/)
It now should work as intended, and you can reuse Jigsaw's filter to
modify the stream (to do compression on the fly, for example).

Yves Lafon - W3C / Jigsaw - XML Protocol - HTTP
"Baroula que barouleras, au tiéu toujou t'entourneras."
Received on Tuesday, 5 December 2000 10:22:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:29 UTC