summaryrefslogtreecommitdiffstats
path: root/Lib/imaplib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/imaplib.py')
-rw-r--r--Lib/imaplib.py2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)