Commit 37d4f7bc authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

#1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.

parent 31679397
......@@ -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)
......
......@@ -15,6 +15,9 @@ Core and builtins
Library
-------
- Bug #1389051: imaplib causes excessive memory fragmentation when reading
large messages.
- Bug #1433694: minidom's .normalize() failed to set .nextSibling for
last child element.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment