I'm getting the following exception occasionally when attempting to connect to our mongodb in production (we are using the mongo-csharp-drivers v188.8.131.5249):
<Message>Unable to connect to the primary member of the replica set: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 192.168.3.28:27017.</Message>
<StackTrace> at MongoDB.Driver.Internal.ReplicaSetConnector.Connect(TimeSpan timeout, ConnectWaitFor waitFor)
at MongoDB.Driver.MongoServer.Connect(TimeSpan timeout, ConnectWaitFor waitFor)
at MongoDB.Driver.MongoServer.Connect(TimeSpan timeout)
at Infrastructure.Configuration.MongoDbRegistry.<.ctor>b__0(IContext cx)</StackTrace>
The article makes it sound like we are running out of available TCP ports on our server, but I'm unsure if this is correct or not. I'm hoping someone could explain the error a little more, and point me in the right direction.