Memcached broken pipe in rails

Posted by abronte on Stack Overflow See other posts from Stack Overflow or by abronte
Published on 2010-03-27T12:00:27Z Indexed on 2010/03/27 12:03 UTC
Read the original article Hit count: 669

I seem to run into some random broken pipe errors if I try to access memcached a specific way.

When I try to access memcached via Rails.cache, the first one or two reads/writes will result in a "MemCacheError (Broken pipe): Broken pipe" and return nil. But if I access memcached through a new object (ActiveSupport::Cache::MemCacheStore.new) I don't get the broken pipe error at all.

I've tried upgrading to memcached 1.4.4 (was previously using 1.2.2) and I still got the error. I'm using rails 2.3.5.

I would prefer to access memcached through Rails.cache because I takes namespaces into account. Any ideas?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about memcached