nodejitsu/haibu-carapace — Issue #13: [v0.6] `net` module wrapper fails to override `_doListen` correctly
Author: mmalecki
Created: 2011-10-16 10:49:19+00:00
State: open

That's because `net.Server.prototype._doListen` doesn't exist in v0.6. My guess is that we should override [`_listen2`](https://github.com/joyent/node/blob/master/lib/net.js#L652) instead, but I'm not familiar with `net` module internals.

This causes tests to fail:

```
♢ carapace/net/dolisten

When using haibu-carapace
✓ it should fire the carapace::listening event
When using haibu-carapace spawning the server-dolisten.js script the child carapace should exit
✗ with the correct exit code
» expected 0,
got	1 (==) // net-multiple-servers-test.js:61
✗ and 3x emit the *::carapace::port event with the correct port
» expected 3,
got	0 (==) // net-multiple-servers-test.js:66
```

(Fixture exits [here](https://github.com/nodejitsu/haibu-carapace/blob/master/test/fixtures/multi-server.js#L22)).