You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2011/12/20 15:29:43 UTC

svn commit: r1221280 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java

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