|
@ -142,9 +142,9 @@ cluster.setupMaster = function(options) { |
|
|
var INTERNAL_PREFIX = 'NODE_CLUSTER_'; |
|
|
var INTERNAL_PREFIX = 'NODE_CLUSTER_'; |
|
|
function isInternalMessage(message) { |
|
|
function isInternalMessage(message) { |
|
|
return isObject(message) && |
|
|
return isObject(message) && |
|
|
typeof message.cmd === 'string' && |
|
|
typeof message.cmd === 'string' && |
|
|
message.cmd.length > INTERNAL_PREFIX.length && |
|
|
message.cmd.length > INTERNAL_PREFIX.length && |
|
|
message.cmd.slice(0, INTERNAL_PREFIX.length) === INTERNAL_PREFIX; |
|
|
message.cmd.slice(0, INTERNAL_PREFIX.length) === INTERNAL_PREFIX; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Modify message object to be internal
|
|
|
// Modify message object to be internal
|
|
|