directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r125147 - /incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
Date Fri, 14 Jan 2005 06:17:46 GMT
Author: trustin
Date: Thu Jan 13 22:17:42 2005
New Revision: 125147

URL: http://svn.apache.org/viewcvs?view=rev&rev=125147
Log:
Fixed: IoAdapter doesn't synchronize decoders.
Modified:
   incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java

Modified: incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
Url: http://svn.apache.org/viewcvs/incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java?view=diff&rev=125147&p1=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java&r1=125146&p2=incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java&r2=125147
==============================================================================
--- incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
(original)
+++ incubator/directory/network/trunk/mina/src/java/org/apache/mina/protocol/io/IoAdapter.java
Thu Jan 13 22:17:42 2005
@@ -156,7 +156,9 @@
                 {
                     if( in.hasRemaining() )
                     {
-                        decoder.decode( psession, in, psession.decOut );
+                        synchronized (decoder) {
+                            decoder.decode( psession, in, psession.decOut );
+                        }
                     }
 
                     Queue queue = psession.decOut.messageQueue;

Mime
View raw message