james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r930830 - in /james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core: RetrCmdHandler.java TopCmdHandler.java
Date Mon, 05 Apr 2010 08:49:02 GMT
Author: norman
Date: Mon Apr  5 08:49:01 2010
New Revision: 930830

URL: http://svn.apache.org/viewvc?rev=930830&view=rev
Log:
Close streams when finish writing

Modified:
    james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/RetrCmdHandler.java
    james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/TopCmdHandler.java

Modified: james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/RetrCmdHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/RetrCmdHandler.java?rev=930830&r1=930829&r2=930830&view=diff
==============================================================================
--- james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/RetrCmdHandler.java
(original)
+++ james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/RetrCmdHandler.java
Mon Apr  5 08:49:01 2010
@@ -92,6 +92,9 @@ public class RetrCmdHandler implements C
                         // write a single dot to mark message as complete
                         out.write((".\r\n").getBytes());
                         out.flush();
+                        
+                        extraDotOut.close();
+                        out.close();
                     }
 
                     session.writeStream(stream.getInputStream());

Modified: james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/TopCmdHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/TopCmdHandler.java?rev=930830&r1=930829&r2=930830&view=diff
==============================================================================
--- james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/TopCmdHandler.java
(original)
+++ james/server/trunk/pop3server/src/main/java/org/apache/james/pop3server/core/TopCmdHandler.java
Mon Apr  5 08:49:01 2010
@@ -129,6 +129,9 @@ public class TopCmdHandler extends RetrC
                         // write a single dot to mark message as complete
                         out.write((".\r\n").getBytes());
                         out.flush();
+                        
+                        extraDotOut.close();
+                        out.close();
                     }
                     session.writeStream(stream.getInputStream());
 



---------------------------------------------------------------------
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