edelight/chef-mongodb — pull request #121 by amilu (2013-05-30 18:48:53+00:00)
Title: Add connection recovery support (also fixes timing bug after restart)

New connection to mogno replica set may fail, especially after service start due to service delay. Current code doesn't handle and might not even detect the problem (ReplSetConnection.New might succeed even if the connect failed).
The fix verifies the connect succeeded and in case of ConnectionFailure retries the connection for several times.