Files
node-v0.x-archive/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
..
2011-03-14 17:37:05 -07:00
2011-10-05 18:51:06 -07:00
2011-03-14 17:37:05 -07:00
2011-10-31 17:36:43 +09:00
2011-03-14 17:37:05 -07:00
2011-10-22 14:14:40 +09:00
2012-02-07 23:16:40 +01:00
2012-02-16 23:47:17 +01:00
2011-11-30 15:28:48 +01:00
2011-11-10 14:51:16 -08:00
2011-03-14 17:37:05 -07:00
2012-01-30 14:12:23 +01:00
2012-01-22 17:29:40 +09:00
2011-09-08 13:30:52 -07:00