directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r328573 - /directory/network/trunk/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
Date Wed, 26 Oct 2005 06:11:07 GMT
Author: trustin
Date: Tue Oct 25 23:11:01 2005
New Revision: 328573

URL: http://svn.apache.org/viewcvs?rev=328573&view=rev
Log:
Fixed that filterRemoved event is not invoked when connection is closed.

Modified:
    directory/network/trunk/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java

Modified: directory/network/trunk/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
URL: http://svn.apache.org/viewcvs/directory/network/trunk/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java?rev=328573&r1=328572&r2=328573&view=diff
==============================================================================
--- directory/network/trunk/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
(original)
+++ directory/network/trunk/src/java/org/apache/mina/common/support/AbstractIoFilterChain.java
Tue Oct 25 23:11:01 2005
@@ -180,7 +180,15 @@
 
             public void sessionClosed( NextFilter nextFilter, IoSession session ) throws
Exception
             {
-                session.getHandler().sessionClosed( session );
+                try
+                {
+                    session.getHandler().sessionClosed( session );
+                }
+                finally
+                {
+                    // Remove all filters.
+                    session.getFilterChain().clear();
+                }
             }
 
             public void sessionIdle( NextFilter nextFilter, IoSession session,



Mime
View raw message