Share your thoughts in the 2024 State of Clojure Survey!

Welcome! Please see the About page for a little more info on how this works.

0 votes
in Libs by

I am using congomongo v0.5.2 and i don't see option to set timeout in this version. can anyone know what is the default connection timeout settings in this version ?

1 Answer

+1 vote
by

You should be able to use mongo-options to build a MongoClientOptions object and then pass that to make-connection -- and mongo-options will accept options as keywords that correspond to methods on the MongoClientOptions.Builder class.

by
Thank you Sean and apologies for delay.

What will be default settings if i am not using mongo-options ?
by
No idea. You'd have to read the MongoDB documentation for that (perhaps the Java driver docs). I stopped using MongoDB over a year ago and I handed off maintenance of CongoMongo to someone else.
...