directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r389025 - /directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Date Mon, 27 Mar 2006 05:58:44 GMT
Author: trustin
Date: Sun Mar 26 21:58:43 2006
New Revision: 389025

URL: http://svn.apache.org/viewcvs?rev=389025&view=rev
Log:
Removed synchronization code on ProtocolDecoder

Modified:
    directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java

Modified: directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
URL: http://svn.apache.org/viewcvs/directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java?rev=389025&r1=389024&r2=389025&view=diff
==============================================================================
--- directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
(original)
+++ directory/trunks/mina/core/src/main/java/org/apache/mina/filter/codec/ProtocolCodecFilter.java
Sun Mar 26 21:58:43 2006
@@ -127,10 +127,7 @@
         
         try
         {
-            synchronized( decoder )
-            {
-                decoder.decode( session, in, decoderOut );
-            }
+            decoder.decode( session, in, decoderOut );
         }
         catch( Throwable t )
         {
@@ -158,16 +155,9 @@
             in.release();
 
             Queue queue = decoderOut.getMessageQueue();
-            synchronized( queue )
+            while( !queue.isEmpty() )
             {
-                if( !queue.isEmpty() )
-                {
-                    do
-                    {
-                        nextFilter.messageReceived( session, queue.pop() );
-                    }
-                    while( !queue.isEmpty() );
-                }
+                nextFilter.messageReceived( session, queue.pop() );
             }
         }
     }



Mime
View raw message