[hornetq-commits] JBoss hornetq SVN: r11829 - trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/stomp/v11.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Dec 5 09:14:44 EST 2011


Author: gaohoward
Date: 2011-12-05 09:14:43 -0500 (Mon, 05 Dec 2011)
New Revision: 11829

Modified:
   trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/stomp/v11/StompFrameHandlerV11.java
Log:
fix decoding problem where it will by pass a frame if it is sent following another frame in one packet.


Modified: trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/stomp/v11/StompFrameHandlerV11.java
===================================================================
--- trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/stomp/v11/StompFrameHandlerV11.java	2011-12-05 13:59:06 UTC (rev 11828)
+++ trunk/hornetq-core/src/main/java/org/hornetq/core/protocol/stomp/v11/StompFrameHandlerV11.java	2011-12-05 14:14:43 UTC (rev 11829)
@@ -829,7 +829,7 @@
 
             System.arraycopy(decoder.workingBuffer, decoder.pos, content, 0, decoder.contentLength);
 
-            decoder.pos += decoder.contentLength + 1;
+            decoder.pos += decoder.contentLength;
             
             //drain all the rest
             if (decoder.bodyStart == -1)



More information about the hornetq-commits mailing list