Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 73034 invoked from network); 8 Mar 2010 15:14:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Mar 2010 15:14:13 -0000 Received: (qmail 58815 invoked by uid 500); 8 Mar 2010 15:13:48 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 58766 invoked by uid 500); 8 Mar 2010 15:13:48 -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 58758 invoked by uid 99); 8 Mar 2010 15:13:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 15:13:48 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of minfrin@sharp.fm designates 72.32.122.20 as permitted sender) Received: from [72.32.122.20] (HELO chandler.sharp.fm) (72.32.122.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Mar 2010 15:13:39 +0000 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id CE65C78109 for ; Mon, 8 Mar 2010 09:13:18 -0600 (CST) Received: from [10.0.0.4] (dsl-241-182-70.telkomadsl.co.za [41.241.182.70]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: minfrin@sharp.fm) by chandler.sharp.fm (Postfix) with ESMTP id 816B878106 for ; Mon, 8 Mar 2010 09:13:17 -0600 (CST) Message-Id: <75BA1988-622D-4CC8-B545-B4971228575F@sharp.fm> From: Graham Leggett To: dev@httpd.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: r->connection->aborted in mod_disk_cache and mod_mem_cache Date: Mon, 8 Mar 2010 17:13:13 +0200 References: X-Mailer: Apple Mail (2.936) X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Checked: Checked by ClamAV on apache.org On 08 Mar 2010, at 4:37 PM, Kevac Marko wrote: > Hello. Why this code is presented in disk cache, but not in mem cache? > > if (r->connection->aborted || r->no_cache) { > ap_log_error(APLOG_MARK, APLOG_INFO, 0, r->server, > "disk_cache: Discarding body for URL %s " > "because connection has been aborted.", > h->cache_obj->key); > /* Remove the intermediate cache file and return non- > APR_SUCCESS */ > file_cache_errorcleanup(dobj, r); > return APR_EGENERAL; > } The mem cache hasn't received the same level of attention is the disk cache did, and due to the OS typically backing the disk with a memory cache anyway, there wasn't much that mem cache did that disk cache didn't already do anyway. As a result, mem cache was removed from what is to become v2.4. That said, if it fixes a bug in v2.2, it can definitely be proposed for inclusion. Regards, Graham --