Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 81025 invoked from network); 12 Feb 2010 08:24:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 08:24:45 -0000 Received: (qmail 82242 invoked by uid 500); 12 Feb 2010 08:24:44 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 82152 invoked by uid 500); 12 Feb 2010 08:24:43 -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 82139 invoked by uid 99); 12 Feb 2010 08:24:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 08:24:43 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [192.18.6.24] (HELO gmp-eb-inf-2.sun.com) (192.18.6.24) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 08:24:33 +0000 Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o1C8ODOv025525 for ; Fri, 12 Feb 2010 08:24:13 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KXP00E00YAWQ600@fe-emea-09.sun.com> for dev@httpd.apache.org; Fri, 12 Feb 2010 08:24:03 +0000 (GMT) Received: from [192.168.0.101] ([unknown] [80.229.52.226]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KXP000VMZC0GV70@fe-emea-09.sun.com> for dev@httpd.apache.org; Fri, 12 Feb 2010 08:24:00 +0000 (GMT) Date: Fri, 12 Feb 2010 08:23:59 +0000 From: Nick Kew Subject: Re: mod_proxy_http ignores errors from ap_pass_brigade(r->output_filters) In-reply-to: <37ABF8AC-41AD-4D48-B4BA-D60AC1490E77@clove.org> Sender: Nicholas.Kew@Sun.COM To: dev@httpd.apache.org Message-id: <7BEB25A9-2D8E-430A-A547-9B47C8906A46@webthing.com> X-Mailer: Apple Mail (2.1077) References: <20100210230416.GB11076@grover.clove.org> <99EA83DCDE961346AFA9B5EC33FEC08B036339F5@VF-MBX11.internal.vodafone.com> <37ABF8AC-41AD-4D48-B4BA-D60AC1490E77@clove.org> X-Virus-Checked: Checked by ClamAV on apache.org On 11 Feb 2010, at 19:47, Aaron Bannert wrote: >> IMHO this is unneeded and indicates a bug in the according filter. >> Filters return apr error codes and not HTTP status codes. If they wish >> to set a specific status code they should pass an error bucket down the >> chain or set r->status appropriately. > > You are correct that filters should be returning apr status codes and > not http status codes, thanks for pointing that out. I'm still a little > concerned about how this is supposed to work though, since it seems like > the mod_proxy_http handler behaves differently than the default handler. There's quite a lot of history to this. We fixed bugs in specific handers, only to find the same in other handlers. So we put a workaround in core. It would probably be a good idea to look at that if you're revisiting this area of the code. See https://issues.apache.org/bugzilla/show_bug.cgi?id=31759, especially the last dozen or so comments and their references. (I'm sure there's more; that's just something I dug up). -- Nick Kew