Skip to content

Commit

Permalink
EphemeralSocket should be exclusive
Browse files Browse the repository at this point in the history
... otherwise it doesn't play nicely with cluster. 

Similar: nodejs/node-v0.x-archive#8643
  • Loading branch information
jbt committed Feb 26, 2015
1 parent ba355ae commit 7f58aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/EphemeralSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ EphemeralSocket.prototype._createSocket = function (callback) {
this._socket.once('listening', function () {
return callback();
});
this._socket.bind(0, null);
this._socket.bind({ port: 0, exclusive: true }, null);

// Start timer, if we have a positive timeout
if (this._socketTimeoutMsec > 0 && !this._socketTimer) {
Expand Down

0 comments on commit 7f58aa0

Please sign in to comment.