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

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 UTC