www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Saegesser <saeges...@platinum.com>
Subject mod_cgi/3817: Output of CGI programs is being buffered.
Date Tue, 02 Feb 1999 17:01:21 GMT

>Number:         3817
>Category:       mod_cgi
>Synopsis:       Output of CGI programs is being buffered.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue Feb  2 09:10:00 PST 1999
>Originator:     saegesser@platinum.com
>Release:        1.3.4
OS:  WinNT4.0 SP3
Compiler:  MSVC 5.0
I have a CGI program written in C which outputs a continuous stream of data
at fixed intervals.  After each printf() I call fflush(stdout).  
When the program is run from the shell prompt the output appears correctly
(i.e. not buffered).  
When the program is run via CGI on WinNT the output is buffered (buffer size 
appears to vary from approx. 512 to 2048 bytes).  When the CGI program is compiled and run
on Solaris 2.6 the output is not buffered.  
The client application in both cases is a Java application using an HttpURLConnection.


[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]
[If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request ]
[from a developer.                                      ]
[Reply only with text; DO NOT SEND ATTACHMENTS!         ]

View raw message