joyent/node — Issue #2637: can't use net.address when using cluster
Author: AndreasMadsen
Created: 2012-01-29 21:27:55+00:00
State: open

When using a cluster `.address()` fail.
Tested with node 0.6.9:

```javascript
var cluster = require('cluster');

if (cluster.isMaster) {
console.log(process.version);

cluster.fork();
} else {
var net = require('net');
var server = net.createServer();

server.on('connection', function (socket) {
socket.end('hallo world');
});

server.listen('listening', function () {
server.address(); // fail
});

server.listen(8000, 'localhost');
}
```

Outputs:

```shell
node child/test5
v0.6.9
Assertion failed: (0 && "bad address family"), function GetSockName, file ../src/tcp_wrap.cc, line 195.
```