1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Merge remote branch 'tj/bugs/empty-keys'

This commit is contained in:
Matt Ranney
2010-09-17 15:42:05 -07:00
2 changed files with 12 additions and 0 deletions

View File

@@ -118,6 +118,9 @@ RedisReplyParser.prototype.execute = function (incoming_buf) {
this.multi_bulk_length = parseInt(small_toString(this.tmp_buffer), 10);
this.multi_bulk_replies = [];
this.state = "type";
if (0 == this.multi_bulk_length) {
this.send_reply([]);
}
} else {
this.emit("error", new Error("didn't see LF after NL reading multi bulk count"));
this.state = "type"; // try to start over with next data chunk