I think I found a misbehavior of the smack lib, V. 1.3. I am trying to do a broadcast over all contacts in my roster. But if I do not sleep for a while in the loop, smack will only send the messages (the number of messages is correct!) to the first recipient. Example: agent1 & agent2 are in my roster (yes, I use smack to build a distributed system…)
then only e.g. agent2 will get broadcasted messages; if I insert a “Thread.sleep(500)” in the messaging loop, smack behaves as expected. Sounds like a concurrency thing…
The Method is attached as a file.
bugreport.txt (978 Bytes)