cluster: handle bind errors on Windows
authorAlexis Campailla <alexis@janeasystems.com>
Thu, 16 Jan 2014 11:18:55 +0000 (03:18 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 14 Feb 2014 00:41:59 +0000 (16:41 -0800)
commit3da36fe00e5d85414031ae812e473f16629d8645
tree1f6982a4a4a0f7f155451861a8d5dd58063c73d9
parente7a03f1c62414192bd96a8214e699a07051fa11e
cluster: handle bind errors on Windows

Before sending a socket from a cluster master to a worker,
we would call listen in UV but not handle the error.

I made createServerHandle call listen on Windows so we get a chance
the handle any bind/listen errors early.

This fix is 100% windows specific.
It fixes test-cluster-bind-twice and
test-cluster-shared-handle-bind-error on Windows.
lib/net.js