james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1215047 - /james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractProtocolTransport.java
Date Fri, 16 Dec 2011 06:50:54 GMT
Author: norman
Date: Fri Dec 16 06:50:54 2011
New Revision: 1215047

URL: http://svn.apache.org/viewvc?rev=1215047&view=rev
Log:
Make sure StartTls is started at the right time in all cases. See PROTOCOLS-54

Modified:
    james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractProtocolTransport.java

Modified: james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractProtocolTransport.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractProtocolTransport.java?rev=1215047&r1=1215046&r2=1215047&view=diff
==============================================================================
--- james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractProtocolTransport.java
(original)
+++ james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/AbstractProtocolTransport.java
Fri Dec 16 06:50:54 2011
@@ -120,7 +120,10 @@ public abstract class AbstractProtocolTr
             } else {
                 writeToClient(toBytes(response), session, startTLS);
             }
-            session.resetState();
+            // reset state on starttls
+            if (startTLS) {
+                session.resetState();
+            }
             
             if (response.isEndSession()) {
                 // close the channel if needed after the message was written out



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