cluster-client
Advanced tools
Comparing version 1.6.5 to 1.6.6
1.6.6 / 2017-07-28 | ||
================== | ||
* fix: set exclusive to true on listen (#29) | ||
1.6.5 / 2017-06-24 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -30,2 +30,6 @@ 'use strict'; | ||
get isClusterClientLeader() { | ||
return this._client.isClusterClientLeader; | ||
} | ||
close() { | ||
@@ -32,0 +36,0 @@ if (is.function(this._client.close)) { |
@@ -54,2 +54,6 @@ 'use strict'; | ||
get isClusterClientLeader() { | ||
return this[innerClient] && this[innerClient].isLeader; | ||
} | ||
/** | ||
@@ -56,0 +60,0 @@ * log instance |
@@ -28,3 +28,8 @@ 'use strict'; | ||
const server = net.createServer(); | ||
server.listen(port, '127.0.0.1'); | ||
server.listen({ | ||
port, | ||
host: '127.0.0.1', | ||
// When exclusive is true, the handle is not shared, and attempted port sharing results in an error. | ||
exclusive: true, | ||
}); | ||
@@ -31,0 +36,0 @@ function onError(err) { |
{ | ||
"name": "cluster-client", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "Sharing Connection among Multi-Process Nodejs", | ||
@@ -11,3 +11,3 @@ "main": "./index.js", | ||
"autod": "autod", | ||
"lint": "eslint . --ext .js --fix", | ||
"lint": "eslint . --ext .js", | ||
"test": "npm run lint && npm run test-local", | ||
@@ -66,4 +66,4 @@ "test-local": "egg-bin test", | ||
"ci": { | ||
"version": "6, 7, 8" | ||
"version": "6, 8" | ||
} | ||
} |
67776
1769