From 1d2ccda55d0959926ee3f3299d5b7d4f9d3016af Mon Sep 17 00:00:00 2001 From: Geoff Flarity Date: Tue, 7 Feb 2012 13:10:25 -0500 Subject: [PATCH] added support for 'stats reset' response --- lib/memcache.js | 6 ++++++ 1 file changed, 6 insertions(+) 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){