Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-388

Creating a new connection may leak a semaphore permit

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 0.0.4
    • Affects Version/s: 0.0.3
    • Component/s: Connections
    • None

      In the connection pool logic, when we attempt to dial a new connection we first acquire a permit from the semaphore which represents the maximum number of connections we can dial at a time. If the dialing of the new connection returns an error, we do not release that permit which will permanently prevent the pool from being closed gracefully. To fix this problem, release the semaphore permit when an error from dialing a connection occurs.

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: