Re: Apache2-2.2.16 buffering output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



found it!
It was being caused by mod_deflate:

	cd /etc/apache2/mods-enabled
	mkdir ../HIDE
	mv *deflate* ../HIDE
	/etc/init.d/apache2 restart

woohoo!
Sorry if I wasted anyones time.
	-rj

-----Original Message-----
On Tue, Jan 03, 2012, rj@xxxxxxxxx wrote:

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux