Skip to content

Commit bc91967

Browse files
committed
set to one byte
1 parent 1179c5c commit bc91967

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pymongo/asynchronous/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ async def checkin(self, conn: AsyncConnection) -> None:
14221422
conn.conn.get_conn.settimeout(0.001)
14231423
close_conn = True
14241424
try:
1425-
conn.conn.get_conn.read()
1425+
conn.conn.get_conn.read(1)
14261426
except Exception as _:
14271427
# TODO: verify the exception
14281428
close_conn = False

pymongo/synchronous/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ def checkin(self, conn: Connection) -> None:
14181418
conn.conn.get_conn.settimeout(0.001)
14191419
close_conn = True
14201420
try:
1421-
conn.conn.get_conn.read()
1421+
conn.conn.get_conn.read(1)
14221422
except Exception as _:
14231423
# TODO: verify the exception
14241424
close_conn = False

0 commit comments

Comments
 (0)