Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 85781 invoked from network); 28 Jan 2008 17:36:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jan 2008 17:36:02 -0000 Received: (qmail 82433 invoked by uid 500); 28 Jan 2008 17:35:49 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 82378 invoked by uid 500); 28 Jan 2008 17:35:49 -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 82367 invoked by uid 99); 28 Jan 2008 17:35:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jan 2008 09:35:49 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.202.165.12] (HELO smtpout08.prod.mesa1.secureserver.net) (64.202.165.12) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 28 Jan 2008 17:35:22 +0000 Received: (qmail 11320 invoked from network); 28 Jan 2008 17:35:27 -0000 Received: from unknown (67.162.45.134) by smtpout08-04.prod.mesa1.secureserver.net (64.202.165.12) with ESMTP; 28 Jan 2008 17:35:26 -0000 Message-ID: <479E125E.4050506@rowe-clan.net> Date: Mon, 28 Jan 2008 11:35:26 -0600 From: "William A. Rowe, Jr." User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: [PATCH] for bug 20832. Add double stat option References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Akins, Brian wrote: > Against trunk. Basically, has a new config "EnableDoubleStat" (I know, > horrible name) off by default. If on, will use apr_file_info_get on open > file handle. Based on patch in thread: > > http://issues.apache.org/bugzilla/show_bug.cgi?id=43386 > > Doesn't apply cleanly against 2.2.8. AFAICT, this still does not resolve the problem, it simply picks up the replacement of the file. It does not address the root 80% of the problem when an open file is then changed during the transmission. Doesn't it make more sense to re-fstat at the end of the transmission, if the expected file sie has again changed, and gracefully finish the request best-we-can? I'm strongly -1 on leaving this solution for trunk, but +/- 0 for backporting this approach to 2.2/2.0 (call it SlowerStatDoubleCheck :-?) since we can't change fundamentally change the API here. For trunk, it's time finally to open the file earlier in the request cycle and use the fstat/file_info_get for the lifetime of the request. Thoughts? Bill