Memcached broken pipe in rails
- by abronte
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?