Skip to content

Commit

Permalink
fixes issue where offset was reset when replacing outgrown buffer. do…
Browse files Browse the repository at this point in the history
…es not appear with values < 4KiB.
  • Loading branch information
fictorial committed Apr 18, 2010
1 parent 51b97a0 commit 959649b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/redis-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ ReplyParser.prototype.feed = function (inbound) {
if (this.valueBufferLen === this.valueBuffer.length) {
var newBuffer = new Buffer(this.valueBuffer.length * 2);
this.valueBuffer.copy(newBuffer, 0, 0);
this.valueBufferLen = 0;
this.valueBuffer = newBuffer;
}
}
Expand Down

0 comments on commit 959649b

Please sign in to comment.