httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject ap_socache anomaly (Re: mod_authn_cache)
Date Sun, 20 Jun 2010 22:31:20 GMT
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

View raw message