Apache::Session::Memcached Insanity

Perrin Harkins perrin at elem.com
Tue Mar 18 21:20:23 UTC 2008


On Tue, Mar 18, 2008 at 4:56 PM, Robert Landrum <robertlandrum at gmail.com> wrote:
> What I've discovered, and cannont reproduce outside of apache, is what
> appears to be a buffering problem.

Sounds more like a locking problem to me.  Apache::Session::Memcached
has no locking, so it's "last save wins."  That can lead to
overwriting data, especially if you load the session on accesses to
images or JS files which are simultaneous with the main page load.

You could try changing it to use a locking module.  It's fairly simple
to do.  Just look at the source.

- Perrin


More information about the memcached mailing list