- 
    Type:Bug 
- 
    Resolution: Fixed
- 
    Priority:Unknown 
- 
    Affects Version/s: None
- 
    Component/s: None
- 
    None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
- 
        None
In PYTHON-2673 we added a list of error codes that signify that "
the server has already killed the cursor so there is no need to send killCursors."
 
However, it looks like "50, # MaxTimeMSExpired" should not have been included in that list, because it might lead to SERVER-67722.
 
https://github.com/mongodb/mongo-python-driver/blame/4.5.0/pymongo/cursor.py#L72-L101
- causes
- 
                    PYTHON-4010 Test Failure - test_timeout_kills_cursor_asynchronously -         
- Closed
 
-         
- is caused by
- 
                    SERVER-79779 AsyncResultsMerger leaks shard cursor when getMore fails due to not primary error -         
- Closed
 
-         
- is related to
- 
                    PYTHON-1755 PyMongo does not cleanup server side cursors after a getMore fails with a network error -         
- Backlog
 
-         
- split to
- 
                    DRIVERS-2751 Update spec tests to reflect new killCursor behavior for ConnectionFailure -         
- Closed
 
-