We should not do any I/O while holding the topology lock but update_pool() holds the lock while (possibly) creating new connections.
def update_pool(self): # Remove any stale sockets and add new sockets if pool is too small. with self._lock: for server in self._servers.values(): server._pool.remove_stale_sockets()
- causes
-
PYTHON-2089 missing required argument 'reason'
- Closed
- is caused by
-
PYTHON-658 Support minPoolSize, maxIdleTimeMS
- Closed