3rd-Eden/node-memcached — Issue #23: Certain errors do not pass an error argument into callback
Author: ronkorving
Created: 2012-01-13 02:12:10+00:00
State: open

When I do sets or gets, if the connection has an issue, an error is not returned into my callback. This means that my code will assume the "set" was successful, or in the case of "get", that the value of the retrieved key is false.

Also, the connect() function does a check if the server is in a failed state. Yet, in both cases where connect() is called, this very same check is executed right before connect() is called. This is duplicate code. One slight nuance here, is that on line 208 of memcached.js, no callback is called if the server check failed.