Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 46220 invoked from network); 27 Sep 2006 13:08:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2006 13:08:15 -0000 Received: (qmail 38324 invoked by uid 500); 27 Sep 2006 13:08:10 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 38266 invoked by uid 500); 27 Sep 2006 13:08:10 -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 38255 invoked by uid 99); 27 Sep 2006 13:08:10 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2006 06:08:10 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=nikke@acc.umu.se; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain acc.umu.se from 130.239.18.156 cause and error) Received: from [130.239.18.156] ([130.239.18.156:42325] helo=mail.acc.umu.se) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id C5/30-26726-6B77A154 for ; Wed, 27 Sep 2006 06:08:08 -0700 Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id ACF6777 for ; Wed, 27 Sep 2006 15:08:03 +0200 (MEST) Received: by mail.acc.umu.se (Postfix, from userid 12143) id E6F4878; Wed, 27 Sep 2006 15:08:02 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by mail.acc.umu.se (Postfix) with ESMTP id E425277 for ; Wed, 27 Sep 2006 15:08:02 +0200 (MEST) Date: Wed, 27 Sep 2006 15:08:02 +0200 (MEST) From: Niklas Edmundsson To: dev@httpd.apache.org Subject: Re: [PATCH] mod_disk_cache working LFS (filecopy) In-Reply-To: <49969.196.8.104.37.1159360079.squirrel@www.sharp.fm> Message-ID: References: <4519512A.6030402@sharp.fm> <49969.196.8.104.37.1159360079.squirrel@www.sharp.fm> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at acc.umu.se X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, 27 Sep 2006, Graham Leggett wrote: > On Wed, September 27, 2006 11:07 am, Niklas Edmundsson wrote: > >> In practice this isn't enough when dealing with large files, so in our >> production code (the hideously large jumbopatch) this is fixed by >> read-while-caching and spawning a thread to do the caching in the >> background while delivering the response (by read-while-caching) to >> the client that initiated the caching. > > A thread makes sense for platforms that support threads, but we would need > some kind of functional behaviour for platforms that don't have threads. > Would the option of spawning a process to copy the file also work, leaving > the original process to read-while-cache the response for the benefit of > the client? We have code for it, it's just untested since we're using the worker mpm. We'll deal with that when I get to those patches. /Nikke -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se --------------------------------------------------------------------------- Dyslexia rules KO. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=