httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RJ White ...@moxad.com>
Subject [users@httpd] Apache2-2.2.16 buffering output
Date Tue, 03 Jan 2012 22:56:00 GMT
Hi,

Here's what I have, after a brand new install:
	Ubuntu 11.04
	Apache 2.2.17
	Perl 5.10.1
Even with a stock Apache install, it buffers my Perl CGI output.
(I've found this also happens on my home Ubuntu-10.10/Apache-2.2.16/Perl-5.10.1)

It's not the (Perl) CGI script.
It's not the browsers (tested with Firefox, Chrome both local & remote)
Everything works as intended on numerous other (RedHat) Linux systems
using older Apache (2.2.3).

A simple example Perl CGI program to illustrate this is:
	#!/usr/bin/env perl

	use CGI;

	my $q = new CGI ;

	$| = 1 ;	# flush stdout

	print $q->header( "text/html" ) ;
	print $q->start_html( -title => "test" );

	for ( my $i=0 ; $i < 5 ; $i++ ) {
		print "<h2> $i ... </h2>" ;
		sleep(1) ;
	}
	print $q->end_html . "\n" ;

Although this happens with a stock Apache config, a simple bare-bones
example in /etc/apache2/sites-enabled/my-machine is:

	<VirtualHost *:80>
		ScriptAlias /cgi-bin/  "/var/www/cgi-bin/"

		<Directory "/var/www/cgi-bin">
			Options None
			AllowOverride None
			Order allow,deny
			Allow from all
		</Directory>
	</VirtualHost>

According to what I've read, after Apache 1.3, output should not be buffered
and it isn't on my other systems.
I had high hopes that a similar description I found in the archives caused
by SSI using 'Options +Includes" might be it, but that doesn't apply here.

Any ideas?  This is driving me nuts...

thanx,
	-rj

---------------------------------------------------------------------
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