james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1221280 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
Date Tue, 20 Dec 2011 14:29:43 GMT
Author: norman
Date: Tue Dec 20 14:29:42 2011
New Revision: 1221280

URL: http://svn.apache.org/viewvc?rev=1221280&view=rev
Log:
use a better default size for temporary store the message in memory

Modified:
    james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java

Modified: james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java?rev=1221280&r1=1221279&r2=1221280&view=diff
==============================================================================
--- james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
(original)
+++ james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
Tue Dec 20 14:29:42 2011
@@ -85,7 +85,8 @@ public class MailEnvelopeImpl implements
      */
     public OutputStream getMessageOutputStream() {
         if (outputStream == null) {
-            this.outputStream = new ByteArrayOutputStream(100000);
+            // use 100kb as default which should be enough for most emails
+            this.outputStream = new ByteArrayOutputStream(100 * 1024);
         }
         return outputStream;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message