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

Fix domain handling and tls camelCase settings

Fixes #1106
Fixes #1103
Closes #1104
This commit is contained in:
Ruben Bridgewater
2016-10-30 21:29:35 +01:00
parent d8d0e2d3e3
commit 41d26dc0c8
5 changed files with 33 additions and 5 deletions

View File

@@ -868,16 +868,16 @@ RedisClient.prototype.internal_send_command = function (command_obj) {
var big_data = false;
var args_copy = new Array(len);
if (process.domain && command_obj.callback) {
command_obj.callback = process.domain.bind(command_obj.callback);
}
if (this.ready === false || this.stream.writable === false) {
// Handle offline commands right away
handle_offline_command(this, command_obj);
return false; // Indicate buffering
}
if (process.domain && command_obj.callback) {
command_obj.callback = process.domain.bind(command_obj.callback);
}
for (i = 0; i < len; i += 1) {
if (typeof args[i] === 'string') {
// 30000 seemed to be a good value to switch to buffers after testing and checking the pros and cons