Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
3.5, 3.6, 3.7, 3.8, 3.9, 3.10
-
None
-
None
Description
Discovered while investigating PYTHON-2089; MongoClient.close may actually create new connections during the call to MongoClient._process_periodic_tasks() which in turn calls Topology.update_pool(). This is useless work since the newly created connections are immediately closed. To fix this we should avoid calling Topology.update_pool() when closing a MongoClient.
Attachments
Issue Links
- is caused by
-
PYTHON-1269 Explicitly closed cursors may not be killed before termination
-
- Closed
-