Open c4milo opened 13 years ago
We should probably copy the impl of net#listen, which performs conversion.
node does that? because you can use a local sock path as well as a string, maybe they parseInt and check NaN then default to a path or something :s seems a little weird, I would expect people to parseInt() if they really want a portno
i'm guessing they do port == Number(port) first
I can see this being useful for stuff like process.env.CLUSTER_PORT
steps to reproduce:
expected: the service starts normally on port 3000
current result: The service doesn't start and a socket file 3000 is created in the current path.