mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
30e462e919
This commit fixes a bug where the cluster module failed to propagate EADDRINUSE errors. When a worker starts a (net, http) server, it requests the listen socket from its master who then creates and binds the socket. Now, OS X and Windows don't always signal EADDRINUSE from bind() but instead defer the error until a later syscall. libuv mimics this behaviour to provide consistent behaviour across platforms but that means the worker could end up with a socket that is not actually bound to the requested addresss. That's why the worker now checks if the socket is bound, raising EADDRINUSE if that's not the case. Fixes #2721. |
||
---|---|---|
.. | ||
_debugger.js | ||
_linklist.js | ||
assert.js | ||
buffer_ieee754.js | ||
buffer.js | ||
child_process.js | ||
cluster.js | ||
console.js | ||
constants.js | ||
crypto.js | ||
dgram.js | ||
dns.js | ||
events.js | ||
freelist.js | ||
fs.js | ||
http.js | ||
https.js | ||
module.js | ||
net.js | ||
os.js | ||
path.js | ||
punycode.js | ||
querystring.js | ||
readline.js | ||
repl.js | ||
stream.js | ||
string_decoder.js | ||
sys.js | ||
timers.js | ||
tls.js | ||
tty.js | ||
url.js | ||
util.js | ||
vm.js | ||
zlib.js |