https://issues.apache.org/bugzilla/show_bug.cgi?id=47949
--- Comment #3 from Bob Yetman <[email protected]> 2009-11-03 10:51:30 UTC --- (In reply to comment #2) > The code always increments the counter when it appends a message to the > buffer, > and this is done in a synch. block. > However, the code does not count (or store) empty messages; likewise it skips > messages that are not instances of TextMessage. > So I don't see how the problems are occurring. > This assumes you are using JMeter 2.3.4. I am using JMeter 2.3.4. The problem is if 2 messages come into onMessage() before the sleep() expires in sampleWithListener(), then onMessage() will put both messages into a single buffer, and then they're read off as a single message in the sampleWithListener(). I've seen this happen in my testing (it cost me quite a few hours trying to find this problem). A similar sequence of events can happen with sampleWithReceive() and the code in ReceiveSubscriber.java. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
