Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 86601 invoked from network); 14 Jun 2006 12:12:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2006 12:12:37 -0000 Received: (qmail 62771 invoked by uid 500); 14 Jun 2006 12:12:36 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 61926 invoked by uid 500); 14 Jun 2006 12:12:33 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 61915 invoked by uid 99); 14 Jun 2006 12:12:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 05:12:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jorton@redhat.com designates 66.187.233.31 as permitted sender) Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jun 2006 05:12:32 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5ECCBCt018590 for ; Wed, 14 Jun 2006 08:12:11 -0400 Received: from turnip.cambridge.redhat.com (turnip.cambridge.redhat.com [172.16.18.137]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k5ECCA5n031256 for ; Wed, 14 Jun 2006 08:12:10 -0400 Received: from turnip.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by turnip.cambridge.redhat.com (8.13.6/8.13.5) with ESMTP id k5ECC9Lx001171 for ; Wed, 14 Jun 2006 13:12:09 +0100 Received: (from jorton@localhost) by turnip.cambridge.redhat.com (8.13.6/8.13.6/Submit) id k5ECC9i7001170 for dev@httpd.apache.org; Wed, 14 Jun 2006 13:12:09 +0100 X-Authentication-Warning: turnip.cambridge.redhat.com: jorton set sender to jorton@redhat.com using -f Date: Wed, 14 Jun 2006 13:12:09 +0100 From: Joe Orton To: dev@httpd.apache.org Subject: Re: svn commit: r413861 - /httpd/httpd/trunk/support/ab.c Message-ID: <20060614121209.GD25292@redhat.com> Mail-Followup-To: dev@httpd.apache.org References: <20060613105155.E55FA1A983A@eris.apache.org> <20060613111138.GA1109@redhat.com> <20060613112820.GA7690@dochas.stdlib.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20060613112820.GA7690@dochas.stdlib.net> User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tue, Jun 13, 2006 at 12:28:20PM +0100, Colm MacCarthaigh wrote: > On Tue, Jun 13, 2006 at 12:11:38PM +0100, Joe Orton wrote: > > On Tue, Jun 13, 2006 at 10:51:55AM -0000, colm@apache.org wrote: > > > Author: colm > > > Date: Tue Jun 13 03:51:54 2006 > > > New Revision: 413861 > > > > > > URL: http://svn.apache.org/viewvc?rev=413861&view=rev > > > Log: > > > A keepalive response need not neccessarily have included any content-length > > > header, handle this case properly for 304 responses. PR39789 > > > > This looks wrong, the patch in the PR was a bit better. If a response > > doesn't have a C-L/T-E the body is read till EOF. [23]04 are special > > cases which have zero length bodies regardless of the message headers. > > 204 is why I didn't conditionalise it on 304, my comment was a bit > misleading there. My change has the same effect as the patch in the PR > for 304 responses, but also for any other keep-alive request which > doesn't include a C-L. Should I restrict to more specific response > codes? or is there another problem I'm just not seeing :) Oh sorry, I missed that this is localised to the "keep-alive" case; in that case I guess it is no less dubious than the rest of the ab response parsing, I don't think it'll break with any normal server. joe