Skip to content

Instantly share code, notes, and snippets.

@erichocean
Created August 7, 2013 09:09
Show Gist options
  • Save erichocean/6172471 to your computer and use it in GitHub Desktop.
Save erichocean/6172471 to your computer and use it in GitHub Desktop.
If I call server.listen() with 'localhost' as the address, things work fine. If instead I call server.listen() with '192.168.0.100' (my IP address), I get the crash below. In both cases, server.listen() is being called in a worker. Any ideas?
net.js:1072
if (port && handle.getsockname && port != handle.getsockname().port) {
^
TypeError: Cannot read property 'getsockname' of undefined
at net.js:1072:23
at Object.1:1 (cluster.js:587:5)
at handleResponse (cluster.js:171:41)
at respond (cluster.js:192:5)
at handleMessage (cluster.js:202:5)
at process.EventEmitter.emit (events.js:117:20)
at handleMessage (child_process.js:318:10)
at Pipe.channel.onread (child_process.js:345:11)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment