We need to set a timeout value when connecting to Mongo via Ruby. We're on Mongo 2.2.
Should we use :timeout
or :connect_timeout
? We see code snippets using both options here on SO and elsewhere. What is the difference?
|
You can see what the different timeouts are here: https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/mongo_client.rb#L104 Copying from there:
|
|||
|