libmemcached Q

Sean Chittenden sean at chittenden.org
Tue Nov 23 17:35:35 PST 2004


> I've been trying to get libmemcached working with a apache module.
>
> sniffing the network it looks fine... I see memcached set'ing & 
> get'ing the same thing back.
>
> but .. it seems to return garbage in the data area..

Are you using mcMemSetup(3)?

int     mcMemSetup(mcFreeFunc freeFunc, mcMallocFunc mallocFunc,
                    mcReallocFunc reallocFunc, mcStrdupFunc strdupFunc);

If not, please do, otherwise libmemcache(3) defaults to using the 
system's malloc(3), which wouldn't play nicely with apr.  -sc

-- 
Sean Chittenden



More information about the memcached mailing list