Wait Timeout for MongoConnection

Why does the following exception occur from the Mongo C # driver when receiving an object from a MongoDB server?

"Waiting timeout for MongoConnection."

Is there a way to set this connection timeout somewhere or fix this problem?

+5
source share
2 answers

You can use socketTimeoutMSthe connection string to increase the latency.

Example:

mongodb://localhost/myCollection?socketTimeoutMS=60000
+4
source

You have probably encountered this problem:

https://jira.mongodb.org/browse/CSHARP-406

The problem has been fixed, and the fix will be included in version 1.4 of the C # driver (coming soon).

100, :

MongoDB:///MaxPoolSize = 200

, , (, , , ).

+1

All Articles