LearnBoost / cluster

Node.JS multi-core server manager with plugins support.
http://learnboost.github.com/cluster
MIT License
2.29k stars 159 forks source link

Ephemeral ports support #88

Open valpackett opened 13 years ago

valpackett commented 13 years ago

Y U NO SUPPORT THEM?

When I call master.listen(0), the master.port is still 0 and I don't know which port it really is :(

tj commented 13 years ago

master.port is just whatever you pass in so that cluster can access it when binding internally but you could still use master.server.address()

tj commented 13 years ago

well or if you pass your server in just server.address()

valpackett commented 13 years ago

it doesn't work if you pass a string with module name to cluster() else, TypeError: Bad file descriptor argument

tj commented 13 years ago

scratch that, still messed up