You've already forked node-redis
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:
8
index.js
8
index.js
@@ -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
|
||||
|
Reference in New Issue
Block a user