We currently fail to clean up the underlying topology when a client.connect() or a MongoClient.connect fails. This causes a rapid increase in the number of connections against the server, as dead topologies still maintain their pools.
Additional Resources:
- causes
-
NODE-1403 connection does not destroyed when mongos server restarts
-
- Closed
-