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.
- causes
-
GODRIVER-987 Pool exhausts with MongoDB v3.0.4
- Closed