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

Creating a new connection may leak a semaphore permit

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical - P2 Critical - P2
    • 0.0.4
    • 0.0.3
    • Connections
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: