christkv/node-mongodb-native — Issue #511: I have auto_reconnect to true, but how do I make sure it works?
Author: ewindso
Created: 2012-02-16 19:24:14+00:00
State: open

when I (for example) interrupt my connection to the DB (say by hibernating my mac, changing locations, etc.) how do I ensure it reconnects ASAP? it seems it may wait a while, and meanwhile my attempts to connect timeout / error handling doesn't seem to be called...

Last night also on my heroku deployed app, I was getting similar "timeouts" that I get on my local machine when I interrupt the server's connection to DB. Ideally I'd like to be able to either 1.) autoreconnect or 2.) terminate the Node process, and let it relaunch. I have error handling to console.log when it happens, but it doesn't seem to happen...

Thanks for all of your help.