Commit Graph

9 Commits

Author SHA1 Message Date
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Shane Harvey
c404150fe7
PYTHON-3011 Fix test_connections_are_only_returned_once (#781) 2021-11-08 17:00:42 -08:00
Julius Park
a80169d1fa
PYTHON-2463 Do not allow a MongoClient to be reused after it is closed (#737) 2021-09-24 15:37:24 -07:00
Shane Harvey
968ee7ba96
PYTHON-2868 Test Serverless behind a load balancer (#742) 2021-09-23 15:57:57 -07:00
Shane Harvey
b4b7a07b81
PYTHON-2762 Avoid duplicating unified test files for LB testing (#649)
Create new client for each cursor/session __del__ test.
Always close cursors in spec tests.
2021-06-25 16:20:21 -07:00
Shane Harvey
6bc5e088af
PYTHON-1272 Fix deadlock when garbage collecting pinned cursors and sessions (#642)
It's not safe to return the pinned connection to the pool from within
Cursor.del because the Pool's lock may be held by a python thread
while the cyclic garbage collector runs. Instead we send the cursor
cleanup request to the client's background thread. The thread will
send killCursors on the pinned socket and then return the socket to
the pool.
Also fixed a similar bug when garbage collecting a pinned session.
2021-06-22 17:29:26 -07:00
Shane Harvey
07146ceba7
PYTHON-2761 Don't return a pinned connection to the pool multiple times (#645) 2021-06-22 15:31:33 -07:00
Shane Harvey
bf78a9b2ef
PYTHON-2744 Run LB tests against non-LB clusters (#638)
Fix serviceId fallback to make spec test pass.
Fix socket leak when SocketInfo connection handshake fails.
2021-06-15 14:30:01 -07:00