directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r358232 - /directory/network/trunk/src/java/org/apache/mina/filter/support/SSLHandler.java
Date Wed, 21 Dec 2005 09:04:45 GMT
Author: trustin
Date: Wed Dec 21 01:04:42 2005
New Revision: 358232

URL: http://svn.apache.org/viewcvs?rev=358232&view=rev
Log:
Modified the exception handling code to make sure that outnetbuffer is flushed out even if
closeInbound fails.

Modified:
    directory/network/trunk/src/java/org/apache/mina/filter/support/SSLHandler.java

Modified: directory/network/trunk/src/java/org/apache/mina/filter/support/SSLHandler.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/filter/support/SSLHandler.java?rev=358232&r1=358231&r2=358232&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/filter/support/SSLHandler.java (original)
+++ directory/network/trunk/src/java/org/apache/mina/filter/support/SSLHandler.java Wed Dec
21 01:04:42 2005
@@ -161,6 +161,17 @@
         try
         {
             sslEngine.closeInbound();
+        }
+        catch( SSLException e )
+        {
+            SessionLog.debug(
+                    session,
+                    "Unexpected exception from SSLEngine.closeInbound().",
+                    e );
+        }
+        
+        try
+        {
             do
             {
                 outNetBuffer.clear();
@@ -171,7 +182,7 @@
         {
             SessionLog.debug(
                     session,
-                    "Unexpected exception from SSLEngine.closeInbound(message).",
+                    "Unexpected exception from SSLEngine.wrap().",
                     e );
         }
         sslEngine.closeOutbound();



Mime
View raw message