node/test
Ben Noordhuis 532d9929c7 cluster: propagate bind errors
This commit fixes a bug where the cluster module fails 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.
2013-03-05 15:23:55 +01:00
..
addons test: update addons .gitignore 2012-05-24 14:07:09 +02:00
disabled test: disable simple/test-dgram-send-error 2013-02-08 01:33:33 +01:00
fixtures fs: don't segfault on deeply recursive stat() 2012-09-14 02:37:51 +02:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet dns: make error message match errno 2013-01-18 12:13:32 +01:00
message test-message: fix message output 2012-08-05 14:33:23 -07:00
pummel tls: fix tls.connect() resource leak 2012-11-26 01:51:05 +01:00
simple cluster: propagate bind errors 2013-03-05 15:23:55 +01:00
common.js test: optionally set common.PORT via env variable 2013-03-02 19:09:39 +01:00