[jboss-cvs] JBoss Messaging SVN: r5937 - trunk/src/main/org/jboss/messaging/core/remoting/impl/wireformat.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 26 08:55:01 EST 2009


Author: ataylor
Date: 2009-02-26 08:55:01 -0500 (Thu, 26 Feb 2009)
New Revision: 5937

Modified:
   trunk/src/main/org/jboss/messaging/core/remoting/impl/wireformat/SessionBindingQueryResponseMessage.java
Log:
getRequiredBufferSize() fix

Modified: trunk/src/main/org/jboss/messaging/core/remoting/impl/wireformat/SessionBindingQueryResponseMessage.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/remoting/impl/wireformat/SessionBindingQueryResponseMessage.java	2009-02-26 13:52:34 UTC (rev 5936)
+++ trunk/src/main/org/jboss/messaging/core/remoting/impl/wireformat/SessionBindingQueryResponseMessage.java	2009-02-26 13:55:01 UTC (rev 5937)
@@ -99,7 +99,7 @@
       int size = BASIC_PACKET_SIZE + BASIC_SIZE;
       for (SimpleString queueName : queueNames)
       {
-         size += queueName.length() + DataConstants.SIZE_INT;
+         size += queueName.length() * 2 + DataConstants.SIZE_INT;
       }
       return size; 
    }




More information about the jboss-cvs-commits mailing list