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)