james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r904032 - /james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPIoHandler.java
Date Thu, 28 Jan 2010 10:39:19 GMT
Author: norman
Date: Thu Jan 28 10:39:18 2010
New Revision: 904032

URL: http://svn.apache.org/viewvc?rev=904032&view=rev
Log:
only write an error to session if the session is still connected

Modified:
    james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPIoHandler.java

Modified: james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPIoHandler.java
URL: http://svn.apache.org/viewvc/james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPIoHandler.java?rev=904032&r1=904031&r2=904032&view=diff
==============================================================================
--- james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPIoHandler.java
(original)
+++ james/server/trunk/smtpserver-function/src/main/java/org/apache/james/smtpserver/mina/SMTPIoHandler.java
Thu Jan 28 10:39:18 2010
@@ -62,7 +62,9 @@
         logger.error("Caught exception: " + session.getCurrentWriteMessage(),
                 exception);
         
-        session.write(new SMTPResponse(SMTPRetCode.LOCAL_ERROR, "Unable to process smtp request"));
+        if (session.isConnected()) {
+            session.write(new SMTPResponse(SMTPRetCode.LOCAL_ERROR, "Unable to process smtp
request"));
+        }
     }
 
     @Override



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