Re: server or Netscape buffer data before send / printin out

lilley (
Wed, 6 Sep 1995 16:53:54 +0100 (BST)

David Zlotchenko asked:

> I am writing a CGI application for a conferencing WWW system. I need the
> server to send and the client to output small portions of data as they
> become awailable. But, the I ran in to the following problem: the data
> gets printed on the screen only by accumulated chanks of approximate size
> 3700K (or end of connection of course).

Two things to do:

1) ensure your application has the filename nph-something, ie it generates
all its headers and thus the server does not need to buffer it all up to
determine the content length

2) If you are already doing that, then do an fflush (or equivalent in
other langages) every so often.

Chris Lilley, Technical Author
|       Manchester and North HPC Training & Education Centre        |
| Computer Graphics Unit,             Email: |
| Manchester Computing Centre,        Voice: +44 161 275 6045       |
| Oxford Road, Manchester, UK.          Fax: +44 161 275 6040       |
| M13 9PL                            BioMOO: ChrisL                 |
|     URI:       |