diff --git a/lib/memcache.js b/lib/memcache.js index d53085b..6398baf 100644 --- a/lib/memcache.js +++ b/lib/memcache.js @@ -295,6 +295,12 @@ Client.prototype.handle_stats = function(buffer){ return [{}, 5]; } + // special case - stats reset + if (buffer.indexOf('RESET') == 0){ + return [{}, 7]; + } + + // find the terminator var idx = buffer.indexOf('\r\nEND\r\n'); if (idx == -1){