mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r544350 - /mina/trunk/filter-ssl/src/main/java/org/apache/mina/filter/SSLFilter.java
Date Tue, 05 Jun 2007 02:53:46 GMT
Author: trustin
Date: Mon Jun  4 19:53:45 2007
New Revision: 544350

URL: http://svn.apache.org/viewvc?view=rev&rev=544350
Log:
fixed possible visibility problem in initializing SSLFilter

Modified:
    mina/trunk/filter-ssl/src/main/java/org/apache/mina/filter/SSLFilter.java

Modified: mina/trunk/filter-ssl/src/main/java/org/apache/mina/filter/SSLFilter.java
URL: http://svn.apache.org/viewvc/mina/trunk/filter-ssl/src/main/java/org/apache/mina/filter/SSLFilter.java?view=diff&rev=544350&r1=544349&r2=544350
==============================================================================
--- mina/trunk/filter-ssl/src/main/java/org/apache/mina/filter/SSLFilter.java (original)
+++ mina/trunk/filter-ssl/src/main/java/org/apache/mina/filter/SSLFilter.java Mon Jun  4 19:53:45
2007
@@ -363,7 +363,9 @@
     public void onPostAdd( IoFilterChain parent, String name, NextFilter nextFilter ) throws
SSLException
     {
         SSLHandler handler = getSSLSessionHandler( parent.getSession() );
-        handler.handshake( nextFilter );
+        synchronized (handler) {
+            handler.handshake( nextFilter );
+        }
         handler.flushPostHandshakeEvents();
     }
     



Mime
View raw message