powered by Jive Software

One message send twice, smack or openfire 's bug

i am sorry ,my english is poor ,so i must write some pseudocode

I write some test code like this:

smackA–>sendmessage—>openfire(4.0.2 or 4.1.0) —> smackB



 wifiAdmin.disconnect(); (in sub thread)


 wifiAdmin.connect(); (in sub thread)


Frequent broken network and reconnected ,i saw some message(one and the same) has been send twice,

and i has been closed offlineMessage in openfire admin(never save offlinemessage) ,plz help!

smack version 4.1.9

openfire version 4.0.2 and 4.1.0

It’s not a bug, it’s by design if you use XMPP without Stream Management resumption support (which I can tell because no Openfire version supports SM resumption).