httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam Varshavchik <mr...@courier-mta.com>
Subject [users@httpd] Buffering of script output in 2.0.40
Date Sun, 15 Dec 2002 04:41:04 GMT
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


Mime
View raw message