christkv/node-mongodb-native — pull request #3 by kenspirit (2012-12-03 21:52:26+00:00)
Title: Avoid trapped in db connecting state if mistakenly call db.open first and server connect afterward. 

Avoid trapped in db connecting state if mistakenly call db.open first and server connect afterward.

Client insert command will keep pushing to commands list if db._state is always connecting and set to autoreconnect.

Line 1886 in db.js method Db.prototype._executeInsertCommand:
if(self._state == 'connecting' && this.serverConfig.autoReconnect)