You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sam Varshavchik <mr...@courier-mta.com> on 2002/12/15 05:41:04 UTC

[users@httpd] Buffering of script output in 2.0.40

After upgrading from 1.3 to 2.0 it appears that output of CGI scripts is 
buffered, and is not sent to the browser until the script completes.  
Example:

#!/bin/sh
echo "Content-Type: text/plain"
echo ""
echo "BUFFERED"
echo ""
sleep 5
env | sort

Running this script under 2.0.40 results in a five second pause, followed by 
"BUFFERED" and the environment.

A google search reveals that script buffering used to be the default in 1.2, 
and the default in 1.3 was unbuffered.  It's not clear why script output is 
buffered in 2.0.  Is there a way to get unbuffered script output in 2.0?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org