0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Ben Noordhuis 30e462e919 cluster: propagate bind errors
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.
2012-02-16 23:47:17 +01:00
..
_debugger.js debugger: Request backtrace w/o refs, see #1745 2011-12-19 13:30:43 -08:00
_linklist.js
assert.js
buffer_ieee754.js
buffer.js buffer: don't pollute global namespace in buffer.readInt* 2011-12-22 23:26:43 +01:00
child_process.js child_process: add errno property to exceptions 2012-01-17 18:37:02 +01:00
cluster.js cluster: don't always kill the master on uncaughtException 2012-01-18 00:45:02 +01:00
console.js
constants.js
crypto.js
dgram.js dgram: handle close of dgram socket before DNS lookup completes 2012-02-14 14:10:21 +01:00
dns.js
events.js events: fix checking max listeners with 1 2012-01-09 04:02:01 +01:00
freelist.js
fs.js fs: fix ReadStream fails to read from existing fd 2012-02-04 22:14:58 +01:00
http.js Add WebSocket RFC6455 multiheader fields to the http parser. 2012-02-16 14:12:38 -08:00
https.js
module.js debugger: fix --debug-brk 2012-02-07 23:16:40 +01:00
net.js cluster: propagate bind errors 2012-02-16 23:47:17 +01:00
os.js util: add internal function _deprecationWarning() 2011-12-14 13:36:21 +01:00
path.js Windows: get rid of process._cwdForDrive() 2012-02-16 00:10:51 +01:00
punycode.js punycode: Update to v0.2.1 2011-11-30 15:28:48 +01:00
querystring.js Make QueryString.parse run faster 2012-02-01 16:04:01 -08:00
readline.js Fixes #2052. Readline get win cols correctly 2011-11-08 13:37:08 -08:00
repl.js Fix #2034 repl message for .clear when useGlobal=true 2011-12-31 03:20:41 +01:00
stream.js throw from stdout.end and stderr.end 2011-11-10 14:51:16 -08:00
string_decoder.js
sys.js util: add internal function _deprecationWarning() 2011-12-14 13:36:21 +01:00
timers.js timers: add v0.4 compatibility hack 2012-01-30 14:12:23 +01:00
tls.js tls: mitigate session renegotiation attacks 2012-02-16 18:15:21 +01:00
tty.js Add missing TTY key translations for F1-F5 on Windows 2012-01-18 16:00:55 +01:00
url.js url: add '.' '+' and '-' in url protocol 2011-11-04 13:36:06 +01:00
util.js util: use getOwnPropertyDescripter 2012-01-22 17:29:40 +09:00
vm.js
zlib.js Fix #2365 zlib crashing on invalid input 2012-01-20 13:12:32 -08:00