httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <ma...@znep.com>
Subject Is $| =1 really a good idea in CGI.pm? (fwd)
Date Tue, 17 Mar 1998 00:44:36 GMT
Grumble.  Oh yea, disabling Nagle breaks modules that don't use their
own buffering too.

More advanced buffering features with better magic flushing or doing the
work to figure out if you can safely leave Nagle enabled are probably
worthwhile at some point.  Sigh.

---------- Forwarded message ----------
Date: Mon, 16 Mar 1998 16:04:20 -0500
From: George Carrette <George_Carrette@IACNET.COM>
Reply-To: Discussion about the Apache ModPerl Module
     <MODPERL@LISTPROC.ITRIBE.NET>
To: MODPERL@LISTPROC.ITRIBE.NET
Subject: Is $| =1 really a good idea in CGI.pm?

The CGI.pm code appears to turn on line-at-a-time output mode,

   $| = 1;

if running under Apache's CGI-Perl.

Maybe things have changed enough so that this is no longer a problem,
but using $| = 1 used to cause many extra tcp-ip packets to be transmitted,
by the web server, and so was a very bad idea, indeed.

Does anybody know why Lincoln D. Stein included this code?



$CGI::revision = '$Id: CGI.pm,v 1.8 1997/12/19 20:12:28 lstein Exp lstein $';


Mime
View raw message