Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 86351 invoked from network); 3 Jun 2004 23:49:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jun 2004 23:49:08 -0000 Received: (qmail 34084 invoked by uid 500); 3 Jun 2004 23:49:22 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 33867 invoked by uid 500); 3 Jun 2004 23:49:20 -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: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 33767 invoked by uid 99); 3 Jun 2004 23:49:19 -0000 Received: from [196.30.143.210] (HELO gatekeeper.fma.co.za) (196.30.143.210) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 03 Jun 2004 16:49:19 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by gatekeeper.fma.co.za (Postfix) with ESMTP id 4941D34ED4 for ; Fri, 4 Jun 2004 01:48:40 +0200 (SAST) Received: from gatekeeper.fma.co.za ([127.0.0.1]) by localhost (gatekeeper.fma.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04367-02 for ; Fri, 4 Jun 2004 01:48:38 +0200 (SAST) Received: from sharp.fm (gatekeeper.fma.co.za [196.30.143.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gatekeeper.fma.co.za (Postfix) with ESMTP id BDF4234EC9 for ; Fri, 4 Jun 2004 01:48:31 +0200 (SAST) Message-ID: <40BFB8CF.3020100@sharp.fm> Date: Fri, 04 Jun 2004 01:48:31 +0200 From: Graham Leggett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040514 X-Accept-Language: en-za, en-us, en MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: Dechunking code in Apache 2.0.49 References: <40BF91CD.6080607@iroise.net> In-Reply-To: <40BF91CD.6080607@iroise.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at fma.co.za X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Mathias Herberts wrote: > What is the position of the Apache community on the passing of 'hop by > hop' headers to origin servers by mod_proxy? The code in proxy_http.c > says 'RFC2616 13.5.1 says we should strip these headers', but RFC 2616 > 13.5.1 defines 'Hop-by-hop headers, which are meaningful only for a > single transport-level connection, and are not stored by caches or > forwarded by proxies.' it never uses SHOULD or MUST as described in RFC > 2119 and therefore allowing mod_proxy to forward the 'Transfer-Encoding' > header would not, IMHO, violate RFC 2616 13.5.1. The purpose of hop by hop headers are exactly that - they govern the connection between each hop. Passing chunked encoding from the origin server unchanged through the filter stack will break all the filters in the chain, which are expecting raw data. The correct fix for this is to make sure that any traffic that apache passes through in either direction is _rechunked_ if a) the connection is HTTP/1.1 and b) there is no content length on the request. It seems we're stripping the chunking on the way in (correctly) but then forgetting to put it back on the way out. Regards, Graham --