Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44210 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18112 invoked from network); 9 Jun 2009 12:00:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jun 2009 12:00:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=php-php-dev@m.gmane.org; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=news@ger.gmane.org; sender-id=pass Received-SPF: pass (pb1.pair.com: domain m.gmane.org designates 80.91.229.2 as permitted sender) X-PHP-List-Original-Sender: php-php-dev@m.gmane.org X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from [80.91.229.2] ([80.91.229.2:33562] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F3/D4-27242-BCE4E2A4 for ; Tue, 09 Jun 2009 08:00:13 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MDzzm-0001Gq-Rx for internals@lists.php.net; Tue, 09 Jun 2009 12:00:02 +0000 Received: from 61.148.100.42 ([61.148.100.42]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jun 2009 12:00:02 +0000 Received: from ptr.wang by 61.148.100.42 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Jun 2009 12:00:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Tue, 09 Jun 2009 19:54:16 +0800 Organization: I need to put my ORGANIZATION here. Lines: 40 Message-ID: <7rocsxaahj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gmane-NNTP-Posting-Host: 61.148.100.42 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Cancel-Lock: sha1:YGtJ2cIWQIJLYDpB1vFQrBRFHxA= Sender: news Subject: A question about ap_content_length_filter() From: ptr.wang@gmail.com (Peter Wang) hi, all. test the php code above, when request with "/v.php?s=8000", I got HTTP/1.1 200 OK Date: Tue, 09 Jun 2009 11:41:54 GMT Server: Apache Content-Length: 8000 Connection: close Content-Type: text/plain it's fine, but while request with "/v.php?s=8001", i got: HTTP/1.1 200 OK Date: Tue, 09 Jun 2009 11:43:09 GMT Server: Apache Connection: close Transfer-Encoding: chunked Content-Type: text/plain so, my question is: when response size <= 8000, the request contains a Content-Length field, otherwise, it uses chunked. 8000 may be very specific on my server, i wonder where can i tuning such a limit. I have tried to change output_buffering in php.ini from 4096 to 8192 to tuning that limit, but it seems nothing changes. thanks for your suggestions.