[jboss-cvs] JBoss Messaging SVN: r3408 - branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/internal.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 4 08:59:34 EST 2007
Author: jmesnil
Date: 2007-12-04 08:59:34 -0500 (Tue, 04 Dec 2007)
New Revision: 3408
Modified:
branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/internal/MinaHandler.java
Log:
http://jira.jboss.org/jira/browse/JBMESSAGING-544 Replace client-server transport with NIO based transport
* close session upon exception only on the server side
Modified: branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/internal/MinaHandler.java
===================================================================
--- branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/internal/MinaHandler.java 2007-12-04 11:18:26 UTC (rev 3407)
+++ branches/Branch_JBMESSAGING-544/src/main/org/jboss/messaging/core/remoting/internal/MinaHandler.java 2007-12-04 13:59:34 UTC (rev 3408)
@@ -47,7 +47,11 @@
public void exceptionCaught(IoSession session, Throwable cause)
throws Exception
{
- session.close();
+ // close session only on the server side
+ if (dispatcher == PacketDispatcher.server)
+ {
+ session.close();
+ }
}
@Override
More information about the jboss-cvs-commits
mailing list