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

When limit is set with a BatchCursor connected to a legacy server, a connection is leaked

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.4
    • Affects Version/s: None
    • Component/s: Core API
    • None
    • Fully Compatible

      In the legacyGetMore method on driverlegacy.BatchCursor, when we reach the limit set by the user we fail to close the connection we opened. This can be fixed by moving the code that checks the limit before we retrieve a connection from the BatchCursor's server.

      Since driverlegacy will be removed soon (in the master branch), this fix should only be done on the release/1.0 branch.

            Assignee:
            connie.yu@mongodb.com Run Tian Yu (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: