I have been experiencing timeouts while querying a higly loaded database. I have tried to increase the timeout settings to allow more time for the query to complete, but I still get timeouts. I am using the following connection string (C# Driver) to try ans increase the timeout settings:
Are there other properties that I should set to allow a query more time to complete?
Exception: System.IO.IOException: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a pe
riod of time, or established connection failed because connected host has failed to respond. ---> System.Net.Sockets.SocketException: A connection attem0pt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at MongoDB.Bson.IO.BsonBuffer.LoadFrom(Stream stream, Int32 count)
at MongoDB.Bson.IO.BsonBuffer.LoadFrom(Stream stream)
at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage[TDocument](MongoServer server)
at MongoDB.Driver.Internal.MongoCursorEnumerator`1.GetReply(MongoRequestMessage message)
at MongoDB.Driver.Internal.MongoCursorEnumerator`1.GetMore()
at MongoDB.Driver.Internal.MongoCursorEnumerator`1.MoveNext()