[jboss-cvs] JBoss Messaging SVN: r8154 - branches/Branch_1_4/src/main/org/jboss/jms/client/remoting.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Dec 20 21:25:41 EST 2010


Author: gaohoward
Date: 2010-12-20 21:25:41 -0500 (Mon, 20 Dec 2010)
New Revision: 8154

Modified:
   branches/Branch_1_4/src/main/org/jboss/jms/client/remoting/ClientSocketWrapper.java
Log:
JBMESSAGING-1835


Modified: branches/Branch_1_4/src/main/org/jboss/jms/client/remoting/ClientSocketWrapper.java
===================================================================
--- branches/Branch_1_4/src/main/org/jboss/jms/client/remoting/ClientSocketWrapper.java	2010-12-20 11:19:06 UTC (rev 8153)
+++ branches/Branch_1_4/src/main/org/jboss/jms/client/remoting/ClientSocketWrapper.java	2010-12-21 02:25:41 UTC (rev 8154)
@@ -82,6 +82,12 @@
       {
          int b = ((DataInputStream)getInputStream()).readByte();
          log.debug(this + ".checkConnection read " + b);
+
+         // https://issues.jboss.org/browse/JBMESSAGING-1835
+         if (b != ACK)
+         {
+            throw new IOException("got " + b + " instead of " + ACK);
+         }
       }
       catch (IOException e)
       {



More information about the jboss-cvs-commits mailing list