commit | 1219a8098965109a112a4732f8f3b78a00a68bae | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 19:02:33 2008 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Feb 23 19:02:33 2008 +0000 |
tree | 4e26094971ab83b30ad1d5c4102aee3b840ddfb3 | |
parent | 170482809864d7b5cd8c3e2584074e3e5de808c0 [diff] [blame] |
#1389051: IMAP module tries to read entire message in one chunk. Patch by Fredrik Lundh.
diff --git a/Lib/imaplib.py b/Lib/imaplib.py index c05abb4..7807e8f 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py
@@ -1156,7 +1156,7 @@ 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)