www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pawel Jasinski <paw...@cableshare.com>
Subject os-windows/3145: Less buffering of the CGI scripts doesn't work (WINDOWS!)
Date Mon, 05 Oct 1998 18:09:55 GMT

>Number:         3145
>Category:       os-windows
>Synopsis:       Less buffering of the CGI scripts doesn't work (WINDOWS!)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Oct  5 11:10:01 PDT 1998
>Originator:     pawelj@cableshare.com
>Release:        3.1.2
Win NT 4.0, service pack 3.
The following CGI script on Windows doesn't produce output
until the 47th line is generated.

#!/usr/local/bin/perl       or  #!c:/Perl/bin/perl.exe

local ($oldbar) = $|;
$cfh = select (STDOUT);
$| = 1;

print "Content-type: text/plain", "\n\n";

for ( $i = 0; $i <1000; $i++ ) {  printf(
-------------\n", $i );  sleep 1; }

The above script works fine on Unix. Updates are generated every second.
To rule out perl as a possible cause of troubles I also tried to use regular foo.bat aproach:

@echo Content-type: text/plain

rem c:\Cygnus\B19\H-i386-cygwin32\bin\sleep.exe 10
c:\ntreskit\sleep.exe 10

The Windows results are consistent (assuming dir produces ~20 lines). 
There is no update until the end of the second dir.


[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