Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 37385 invoked from network); 13 Jul 2004 10:44:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jul 2004 10:44:58 -0000 Received: (qmail 57157 invoked by uid 500); 13 Jul 2004 10:44:52 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 57084 invoked by uid 500); 13 Jul 2004 10:44:52 -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 57071 invoked by uid 99); 13 Jul 2004 10:44:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [66.187.233.31] (HELO mx1.redhat.com) (66.187.233.31) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 13 Jul 2004 03:44:49 -0700 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i6DAime1026916; Tue, 13 Jul 2004 06:44:48 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i6DAil015912; Tue, 13 Jul 2004 06:44:47 -0400 Received: from radish.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by radish.cambridge.redhat.com (8.12.10/8.12.7) with ESMTP id i6DAik7m031924; Tue, 13 Jul 2004 11:44:46 +0100 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.12.10/8.12.10/Submit) id i6DAik7a031923; Tue, 13 Jul 2004 11:44:46 +0100 Date: Tue, 13 Jul 2004 11:44:46 +0100 From: Joe Orton To: Graham Leggett Cc: dev@httpd.apache.org Subject: Re: The Byterange filter -- a new design -- feel free to rip it to shreds Message-ID: <20040713104446.GE30998@redhat.com> Mail-Followup-To: Graham Leggett , dev@httpd.apache.org References: <40F1F1C6.4030400@apache.org> <40F279BA.7050002@sharp.fm> <40F296D4.7090303@sharp.fm> <20040713100138.GA31617@redhat.com> <40F3B7DC.4060609@sharp.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <40F3B7DC.4060609@sharp.fm> User-Agent: Mutt/1.4.1i X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, Jul 13, 2004 at 12:22:20PM +0200, Graham Leggett wrote: > Joe Orton wrote: > > >As far as I can tell the byterange filter should handle all such cases > >correctly already: read ap_set_byterange() - it punts on a non-200 > >r->status or when r->headers_out contains a Content-Range header etc. > >Is this side-discussion just theoretical pondering or is there some real > >issue you're trying to solve? > > When you say "it punts" what do you mean - that it removes itself from > the filter stack (as in "my work here is already done")? If this is the > case, then it works correctly already. Yes, that's exactly what it's supposed to do already. I haven't checked that it works via the proxy but it certainly does for other cases. > The problem arises when large data sizes (say a 650MB CD ISO) are stored > in a multi-tier webserver architecture (mod_proxy in front of a backend, > for example), and somebody comes along and tries to download it using a > download accelerator, or they simply try to resume a failed download. > > The full 650MB CD ISO is then transferred from the backend to the > frontend, which then pulls out the bits the frontend needs dumping the > rest. And this happens once for every single byte range request. And buffered into RAM each time too, nice. This is another good case for the byterange filter not doing any work for anything other than "simple" content per my other mail. joe