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

Re: [MiNT] Problems with apache



Hi!

On Fri, Dec 12, 2003 at 08:05:29PM +0100, Guido Flohr wrote:
> I experienced a problem with CGI in the apache-1.3.29-1 rpm available 
> for Sparemint.  CGI applications are not able to output more than 8166 
> bytes of content, 8291 bytes including headers.
> 
> This Perl script reproduces the problem:
> 
> #! /usr/bin/perl
> 
> use strict;
> 
> my $output = <<EOF;
> Content-Type: text/plain
> 
> EOF
> 
> my $l = length $output;
> 
> while ($l < 100 * 1024) {
> 	$output .= sprintf '%x', ($l >> 8) & 0xf;
> 	++$l;
> }
> 
> print $output;
> __END__

Just to make sure it's not a pipe buffer issue: Does calling the
script from the shell and piping its output to wc report the
correct output size?


Ciao

Thomas


-- 
Thomas Binder (Gryf @ IRCNet)  gryf@hrzpub.tu-darmstadt.de
PGP-key available on request!

Attachment: pgp587qiIPlgt.pgp
Description: PGP signature