function _connectWithRetry(url) {
        var conn;
        assert.soon(function() {
            try {
                conn = new Mongo(url);
                return true;
             } catch (e) {
                 print("Error connecting to " + url + ": " + e);
                 return false;
             }
        });

        return conn;
    }
/**
     * Attempts to open a connection to the specified connection string or throws if unable to
     * connect.
     */
Attempts to open a connection to the specified connection string or throws if unable to
connect.
Attempts to open a connection to the specified connection string or throws if unable to connect .
function _connectWithRetry(url) {
        var conn;
        assert.soon(function() {
            try {
                conn = new Mongo(url);
                return true;
             } catch (e) {
                 print("Error connecting to " + url + ": " + e);
                 return false;
             }
        });
        return conn;
    }
function _connectWithRetry ( url ) { var conn ; assert . soon ( function ( ) { try { conn = new Mongo ( url ) ; return true ; } catch ( e ) { print ( "Error connecting to " + url + ": " + e ) ; return false ; } } ) ; return conn ; }
Attempts to open a connection to the specified connection string or throws if unable to
 connect.
Attempts to open a connection to the specified connection string or throws if unable to connect .