There was an error while loading. Please reload this page.
1 parent 414250b commit fe5c119Copy full SHA for fe5c119
pymongo/mongo_client.py
@@ -917,7 +917,10 @@ def _process_kill_cursors_queue(self):
917
for address, cursor_ids in address_to_cursor_ids.items():
918
try:
919
if address:
920
- server = topology.select_server_by_address(address)
+ # address could be a tuple or _CursorAddress, but
921
+ # select_server_by_address needs (host, port).
922
+ server = topology.select_server_by_address(
923
+ tuple(address))
924
else:
925
# Application called close_cursor() with no address.
926
server = topology.select_server(
0 commit comments