#1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
This commit is contained in:
parent
31679397af
commit
37d4f7bc0c
|
@ -1147,7 +1147,7 @@ class IMAP4_SSL(IMAP4):
|
|||
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…
Reference in New Issue