You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Matthieu Estrade <ap...@moresecurity.org> on 2003/12/10 12:46:05 UTC
[PATCH] bug #18756 ldap cache and shared memory - cache init
Hi,
Here is a little patch, fixing the ldap cache using shared memory.
After the fix for plateform using SHM or not, it was a problem with
cache init, unable to get it's rmm address to alloc memory.
I modified the cache alloc for the two cases, with and without SHM, now
not using more util_ald_alloc but normal alloc function.
Tested on Linux with SHM, it's working well.
Matthieu
Re: [PATCH] bug #18756 ldap cache and shared memory - cache init
Posted by Matthieu Estrade <ap...@moresecurity.org>.
Hi,
st->cache_rmm is now invalid because due to non SHM plateform, bnicholes
changed the alloc function util_ald_alloc to receive now
util_ald_cache_t and no more apr_rmm_t.
As we are just before the cache alloc, it's impossible to give
util_ald_alloc a cache object, that's why there, i did a basic alloc
functions.
Jeff Trawick wrote:
> Matthieu Estrade wrote:
>
>> Here is a little patch, fixing the ldap cache using shared memory.
>> After the fix for plateform using SHM or not, it was a problem with
>> cache init, unable to get it's rmm address to alloc memory.
>
>
> why is st->cache_rmm not filled out (or invalid)?
>
>
Re: [PATCH] bug #18756 ldap cache and shared memory - cache init
Posted by Jeff Trawick <tr...@attglobal.net>.
Matthieu Estrade wrote:
> Here is a little patch, fixing the ldap cache using shared memory.
> After the fix for plateform using SHM or not, it was a problem with
> cache init, unable to get it's rmm address to alloc memory.
why is st->cache_rmm not filled out (or invalid)?