Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2337

Clearing connectionPools should close connections

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Connectivity
    • Labels:
      None

      ExclusiveConnectionPool's Clear() appears to simply abandons all existing connections without closing them.

      If Clear becomes a blocking operation then we're going to need a ClearAsync version also.

      Closing the connections in the background is dangerous because it creates a possible race conditions where connections are opened faster than they are closed leading to resource exhaustion. 

       

            Assignee:
            vincent.kam@mongodb.com Vincent Kam (Inactive)
            Reporter:
            vincent.kam@mongodb.com Vincent Kam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: