We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1179c5c commit bc91967Copy full SHA for bc91967
pymongo/asynchronous/pool.py
@@ -1422,7 +1422,7 @@ async def checkin(self, conn: AsyncConnection) -> None:
1422
conn.conn.get_conn.settimeout(0.001)
1423
close_conn = True
1424
try:
1425
- conn.conn.get_conn.read()
+ conn.conn.get_conn.read(1)
1426
except Exception as _:
1427
# TODO: verify the exception
1428
close_conn = False
pymongo/synchronous/pool.py
@@ -1418,7 +1418,7 @@ def checkin(self, conn: Connection) -> None:
1418
1419
1420
1421
0 commit comments