javkrei / prosody-modules

Automatically exported from code.google.com/p/prosody-modules
0 stars 0 forks source link

mod_smacks: Sessions can start multiple times, and before binding. Sessions which got replaced can get destroyed. #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect
2. Before binding, send "<enable/>"
3. Stream management is now enabled, before the client bound a resource. This 
should generate an error (http://xmpp.org/extensions/xep-0198.html Example 5)

What steps will reproduce the problem?
1. Connect
2. Send "<enable/>"
3. Send "<enable/>"
4. All stanzas are now counted twice.

What steps will reproduce the problem?
1. Connect
2. Enable stream management and resumption
3. Disconnect
4. Reconnect, without resuming
5. The new session will be destroyed after the timeout

I've attached a patch which fixes all these issues.

Original issue reported on code.google.com by thijsalk...@gmail.com on 19 Jun 2011 at 2:57

Attachments: