Upgrade Smack in Integration Tests from 4.4.4 to 4.4.6
Upgrading Smack to 4.4.6, which should include fixes that allow us to re-enable some tests that were flappy in older versions.
OF-2448: Close correct BOSH connection when it's being replaced.
As the intention is for the new connection to replace the old connection, the new connection should not be closed
OF-2446: Use a more efficient List implementation for HttpSession's sentElements
The code is using this List as a queue. Using an ArrayList for this isn't very efficient. A LinkedList (or any Queue) is expected to perform better.
OF-2445: Prevent BOSH from queuing stanzas on closed connection
When a connection is closed, any stanzas that are sent to it (to be delivered) should be failed.
This change applies to newly supplied stanzas the same mechanism that is used for stanzas that are pending at the time the session is closed.
OF-2450: BOSH pause response should be given on the connection that requests the pause
Probably due to a simple bug, the answer was given on the latest connection, rather than the connection that is being processed.