I’'ve obsered some strange behaviour on openfire lately. Some of my users are receiving message not in the order there where sent.
User 1 sends a first message stanza to User2 whose content is “Hello”
Shortly after User 1 resends a message stanza to User1 saying “How are you?”
User 2 receives messages: “How are you?” and then “Hello”
This is the component I’'m using:
OpenFire (OF) 3.1.1
2 Connection Manager (CM) 3.1.1
I’'m suspecting some troubles in the way the Connection Manager works. In the CM configuration we have specified that we want 10 connections between each CM and OF.
When a user sends a stanza through the CM, the CM receives it and ‘‘randomly’’ choose one of the connection to forward it to OF.
When sending two stanzas, they can be routed through two different connections and OF has no way to know which stanzas has arrived first. By doing so, we can loose ordering. I beleive that clients should be assigned to one and only one connection on the CM so that we are sure to maintain ordering.
What do you think?