You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
Fix handling of missing info return value. Fixes #541
This commit is contained in:
@@ -11,6 +11,8 @@ Bugfixes:
|
|||||||
|
|
||||||
- Fix argument mutation while using the array notation with the multi constructor (@BridgeAR)
|
- Fix argument mutation while using the array notation with the multi constructor (@BridgeAR)
|
||||||
- Fix multi.hmset key not being type converted if used with an object and key not being a string (@BridgeAR)
|
- Fix multi.hmset key not being type converted if used with an object and key not being a string (@BridgeAR)
|
||||||
|
- Fix parser errors not being catched properly (@BridgeAR)
|
||||||
|
- Fix a crash that could occur if a redis server does return the info command as usual #541 (@BridgeAR)
|
||||||
|
|
||||||
## v2.0.1 - Sep 24, 2015
|
## v2.0.1 - Sep 24, 2015
|
||||||
|
|
||||||
|
8
index.js
8
index.js
@@ -343,6 +343,14 @@ RedisClient.prototype.on_info_cmd = function (err, res) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* istanbul ignore if: some servers might not respond with any info data. This is just a safety check that is difficult to test */
|
||||||
|
if (!res) {
|
||||||
|
debug('The info command returned without any data.');
|
||||||
|
this.server_info = {};
|
||||||
|
this.on_ready();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var obj = {};
|
var obj = {};
|
||||||
var lines = res.toString().split("\r\n");
|
var lines = res.toString().split("\r\n");
|
||||||
|
Reference in New Issue
Block a user