W3C home > Mailing lists > Public > www-talk@w3.org > September to October 1995

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

From: lilley <lilley@afs.mcc.ac.uk>
Date: Wed, 6 Sep 1995 16:53:54 +0100 (BST)
Message-Id: <18108.9509061553@afs.mcc.ac.uk>
To: zlotchen@solar.rtd.utk.edu (David Zlotchenko)
Cc: www-talk@w3.org
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: Chris.Lilley@mcc.ac.uk |
| Manchester Computing Centre,        Voice: +44 161 275 6045       |
| Oxford Road, Manchester, UK.          Fax: +44 161 275 6040       |
| M13 9PL                            BioMOO: ChrisL                 |
|     URI: http://info.mcc.ac.uk/CGU/staff/lilley/lilley.html       | 
+-------------------------------------------------------------------+
Received on Wednesday, 6 September 1995 11:54:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:18 GMT