christkv/node-mongodb-native — Issue #429: new( mongo.Db ).connected is true after error and connection close?
Author: johnny-john
Created: 2011-12-05 11:36:45+00:00
State: open

If I have an error in a callback and the mongodb driver closes the connection to the database, how can I determine if I should reconnect? The aformentioned variable is true after such a forced close, as is the state member and a lot of other.

Which variable should I look after?