elbart / node-memcache

node.js memcached client
285 stars 64 forks source link

seems, "get" method contains a mistake #12

Open shunanya opened 13 years ago

shunanya commented 13 years ago

Hi, I try to use your library in our node-based application that generates a lot of write/read requests to memcached server (with quite big rate). All is fine, but sometimes I receive from get method callback a strange result - error = undefined and data = null. Note, I check manually memcached value for the same key - data is exists and has a correct value. Can you please advise what problem can be here? And how it can be resolved? Simon

elbart commented 13 years ago

Hi Simon,

I found a fork which handles the memcache GET requests with buffers and is maybe more safe. I will try to merge this as soon as possible and release a new version... or feel free to try it out yourself before. There's the commit:

https://github.com/ddopson/node-memcache/commit/bfdb529487c489e497b3912efcff542aa96be91a

Regards,

Tim