Reduce max in-memory size of IMAP text from 16MB to 2MB

* Even 2MB is probably high, but it's far better than 16MB

Bug: 5573863
Change-Id: I00d6d84ebc538d41dbf5683bd078a6bcd802e584
This commit is contained in:
Marc Blank 2011-11-14 16:53:48 -08:00
parent 30fd3107c4
commit dceb2884ea
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public class ImapResponseParser {
/**
* Literal larger than this will be stored in temp file.
*/
private static final int LITERAL_KEEP_IN_MEMORY_THRESHOLD = 16 * 1024 * 1024;
private static final int LITERAL_KEEP_IN_MEMORY_THRESHOLD = 2 * 1024 * 1024;
/** Input stream */
private final PeekableInputStream mIn;