>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 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.4 >Environment: OS: WinNT4.0 SP3 Compiler: MSVC 5.0 >Description: 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. >How-To-Repeat:
>Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> 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! ]