christkv/node-mongodb-native — comment on commit 2571244d4e26f6d30605ff29422be363fd0901c6
File: lib/mongodb/connection/connection.js line 88
By mojodna:

For issue #437:

With 0.9.7-1.4 (on Node 0.6.5), the change from `destroy` to `end` prevents connections to servers with invalid hostnames (`invalid.host`, for example) from properly closing (thereby hanging the Node process). The connection's `_connecting` property is still `true` at this point (despite having emitted an `error` event), suggesting that this might be a Node bug.

The upshot is that the tests still pass when this is changed back to `destroy`. Alternately, calling `self.connection.destroy()` addresses the issue I'm seeing while allowing the tests to continue to pass. Why was it changed in the first place?