mongodb/node-mongodb-native — pull request #707 by elbert3 (2012-09-11 04:18:41+00:00)
Title: Fixed connection leak and cleanup

- Closed a connection that was still being left open
- Only add server to addresses array after successful connection
- Minimize number of times connections are reopened (and closed) to existing servers:
* Don't reconnect to servers that are already connected
* Connect to servers in order they were added (shift instead of pop)