GangXu / as3-stomp

Automatically exported from code.google.com/p/as3-stomp
0 stars 0 forks source link

client does not handle streams that contain multiple messages #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. launch ActiveMQ and go to the admin console
2. launch the as3Stomp client
3. in the ActiveMQ admin console go to the send page and enter a message
that contains several hundred characters. Enter 1000 in the "Number of
messages to send" field, and in "Destination" field enter the queue name
that the client subscribed to (e.g., test).

What is the expected output? 

The client should receive all 1000 messages and dispatch a MessageEvent for
each one.

What do you see instead?

The client throws an error after receiving several messages.  The
FrameReader does not parse the messages correctly because the stream
contains multiple messages and the FrameReader only grabs the first one and
 then discards the bytes of the remaining messages.

Original issue reported on code.google.com by dwischu...@gmail.com on 6 Apr 2008 at 8:57

GoogleCodeExporter commented 8 years ago
Patch submitted by Peter Mulreid.

See http://code.google.com/p/as3-stomp/source/detail?r=10

Original comment by dwischu...@gmail.com on 6 Apr 2008 at 9:03

GoogleCodeExporter commented 8 years ago
I have this same issue... Just posted a new ticket yesterday. Still occurring...

Original comment by K2xL....@gmail.com on 23 Dec 2010 at 4:45