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

Fix bug in ready check with return_buffers set to true.

Thanks to Dean Mao and Austin Chau.
This commit is contained in:
Matt Ranney
2011-02-22 21:10:50 -10:00
parent 99ae085e40
commit 29e09c1c16
3 changed files with 9 additions and 3 deletions

View File

@@ -1,6 +1,12 @@
Changelog Changelog
========= =========
## v0.5.6 - February 22, 2011
Fix bug in ready check with `return_buffers` set to `true`.
Thanks to Dean Mao and Austin Chau.
## v0.5.5 - February 16, 2011 ## v0.5.5 - February 16, 2011
Add probe for server readiness. Add probe for server readiness.

View File

@@ -179,8 +179,8 @@ RedisClient.prototype.ready_check = function () {
return; return;
} }
var lines = res.split("\r\n"), obj = {}, retry_time; var lines = res.toString().split("\r\n"), obj = {}, retry_time;
lines.forEach(function (line) { lines.forEach(function (line) {
var parts = line.split(':'); var parts = line.split(':');
if (parts[1]) { if (parts[1]) {

View File

@@ -1,5 +1,5 @@
{ "name" : "redis", { "name" : "redis",
"version" : "0.5.5", "version" : "0.5.6",
"description" : "Redis client library", "description" : "Redis client library",
"author": "Matt Ranney <mjr@ranney.com>", "author": "Matt Ranney <mjr@ranney.com>",
"contributors": [ "contributors": [