Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 97419 invoked from network); 7 Dec 2005 16:08:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Dec 2005 16:08:33 -0000 Received: (qmail 85427 invoked by uid 500); 7 Dec 2005 16:08:17 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 85346 invoked by uid 500); 7 Dec 2005 16:08:17 -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 85335 invoked by uid 99); 7 Dec 2005 16:08:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 08:08:17 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [128.195.24.168] (HELO scotch.ics.uci.edu) (128.195.24.168) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2005 08:08:16 -0800 Received: from scotch.ics.uci.edu (localhost [127.0.0.1]) by scotch.ics.uci.edu (8.12.11/8.12.11) with ESMTP id jB7G7uAY015536 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 7 Dec 2005 08:07:56 -0800 (PST) Received: (from jerenk@localhost) by scotch.ics.uci.edu (8.13.4+Sun/8.12.11/Submit) id jB7G7uJQ015535 for dev@httpd.apache.org; Wed, 7 Dec 2005 08:07:56 -0800 (PST) X-Authentication-Warning: scotch.ics.uci.edu: jerenk set sender to justin@erenkrantz.com using -f Date: Wed, 7 Dec 2005 08:07:56 -0800 From: Justin Erenkrantz To: dev@httpd.apache.org Subject: Re: 2.2 mod_http_proxy and "partial" pages Message-ID: <20051207160756.GO28636@scotch.ics.uci.edu> Mail-Followup-To: Justin Erenkrantz , dev@httpd.apache.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-Spam-Checker-Version: SpamAssassin 3.2.0-r232569 (2005-08-13) on scotch.ics.uci.edu X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=no version=3.2.0-r232569 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, Dec 07, 2005 at 10:21:10AM +0100, Plm, Rdiger, VIS wrote: > I would like to set the c->aborted in mod_proxy's proxy_handler after the > run_scheme_handler. > > Reason: > > 1. We can define a clear interface for the scheme handlers here: > If the backend broke before you sent headers just return BAD_GATEWAY > and send nothing, if it broke afterwards just return BROKEN_BACKEND > (or whatever you like that should be defined for this case). > The proxy handler would handle this BROKEN_BACKEND return code and > do the 'right' thing (currently setting c->aborted). > Thus we do not have the need to put the burden of the details on > the schema handler (why I regard it as a burden see 2.) Feel free to commit a patch. =) > 2. I am not 100% percent happy with the c->aborted approach as the original > intention of c->aborted was another one (The connection to the *client* broke > not to the *backend*). I admit that I do not see any other approach > currently, so we should stick with this, but if we decide to change this > later on and we follow 1. then it is much easier to change as we have this > code only in *one* location and not in every scheme handler. But, that's exactly what we want: we must abort the connection to the client because we can't complete the response. -- justin