mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
#1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
This commit is contained in:
parent
1704828098
commit
1219a80989
1 changed files with 1 additions and 1 deletions
|
@ -1156,7 +1156,7 @@ else:
|
|||
chunks = []
|
||||
read = 0
|
||||
while read < size:
|
||||
data = self.sslobj.read(size-read)
|
||||
data = self.sslobj.read(min(size-read, 16384))
|
||||
read += len(data)
|
||||
chunks.append(data)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue