title: How to Set MongoDB database connection timeout in CodeIgniter?
body: <p>I need to set a timeout for <code>MongoDB</code> <code>Codeigniter</code> Connection. 
  My <code>config</code> file is </p>
  
  <pre><code>          $config['mongo_db']['active'] = 'default';
            $config['mongo_db']['default']['no_auth'] = FALSE;
            $config['mongo_db']['default']['hostname'] = 'SHLY_DBSERVER';
            $config['mongo_db']['default']['port'] = '27018';
            $config['mongo_db']['default']['username'] = 'user';
            $config['mongo_db']['default']['password'] = '123';
            $config['mongo_db']['default']['database'] = 'testdb';
            $config['mongo_db']['default']['db_debug'] = TRUE;
            $config['mongo_db']['default']['return_as'] = 'array';
            $config['mongo_db']['default']['write_concerns'] = (int)1;
            $config['mongo_db']['default']['journal'] = TRUE;
            $config['mongo_db']['default']['read_preference'] = NULL;
            $config['mongo_db']['default']['read_preference_tags'] = NULL;
            $config['mongo_db']['default']['no_auth'] = FALSE;
  </code></pre>
  
  <p>is there any way to set that option from here?</p>