Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 42011 invoked from network); 20 Jun 2010 22:31:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jun 2010 22:31:53 -0000 Received: (qmail 58292 invoked by uid 500); 20 Jun 2010 22:31:53 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 58224 invoked by uid 500); 20 Jun 2010 22:31: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: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 58216 invoked by uid 99); 20 Jun 2010 22:31:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jun 2010 22:31:52 +0000 X-ASF-Spam-Status: No, hits=-1.4 required=10.0 tests=AWL,FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO baldur) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Jun 2010 22:31:46 +0000 Received: from baldur (localhost [127.0.0.1]) by baldur (Postfix) with ESMTP id 31407C18D359 for ; Sun, 20 Jun 2010 23:31:24 +0100 (BST) Date: Sun, 20 Jun 2010 23:31:20 +0100 From: Nick Kew To: dev@httpd.apache.org Subject: ap_socache anomaly (Re: mod_authn_cache) Message-ID: <20100620233120.741e9838@baldur> In-Reply-To: <036A2CB2-F2FF-494E-971D-B15AF3734880@sharp.fm> References: <20100616232934.300087a4@baldur> <036A2CB2-F2FF-494E-971D-B15AF3734880@sharp.fm> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.3; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 17 Jun 2010 00:43:55 +0200 Graham Leggett wrote: > mod_socache all the way. Question on mod_socache usage: how to use create/init/destroy? Create seems straightforward, but init/destroy are contradictory. On the one hand, they are passed a server_rec, suggesting they're per-server. On the other hand, the instance comes from "create", and the cname argument suggests it should be per-module. Grepping /trunk/ finds only the providers, no usage examples! Looking at one of the providers, the server_rec seems only to be used in ap_log_error. Is it safe to assume the server_rec won't be used for anything more? And why not take the apparent mismatch out of the API by using ap_log_perror instead? -- Nick Kew