Merge branch 'master' of github.com:mongodb/mongo-python-driver

This commit is contained in:
Steven Silvester 2024-10-18 05:01:02 -05:00
commit b1dcfbe0e0
No known key found for this signature in database
GPG Key ID: B1BF5EC3A8B32F91
2 changed files with 3 additions and 3 deletions

View File

@ -215,11 +215,11 @@ else:
while total_read < length:
try:
read = conn.recv_into(mv[total_read:])
if read == 0:
raise OSError("connection closed")
# KMS responses update their expected size after the first batch, stop reading after one loop
if once:
return mv[:read]
if read == 0:
raise OSError("connection closed")
except BLOCKING_IO_ERRORS:
await asyncio.sleep(backoff)
read = 0

View File

@ -1,5 +1,5 @@
mypy==1.11.2
pyright==1.1.383
pyright==1.1.384
typing_extensions
-r ./encryption.txt
-r ./ocsp.txt