Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monal reuses stanza ids which causes id clashes #52

Closed
tmolitor-stud-tu opened this issue Oct 7, 2016 · 2 comments
Closed

Monal reuses stanza ids which causes id clashes #52

tmolitor-stud-tu opened this issue Oct 7, 2016 · 2 comments

Comments

@tmolitor-stud-tu
Copy link
Member

I just stumbled upon this log trace in prosody, showing that Monal doesn't use different ids for its stanzas when they are sent during the same second.

Oct 06 21:43:07 c2s9db7560      debug   Received[c2s]: <iq id='monal89383' type='set'>
Oct 06 21:43:07 c2s9db7560      debug   #queue = 1
Oct 06 21:43:07 c2s9db7560      debug   Queuing <r> (in a moment)
Oct 06 21:43:07 c2s9db7560      debug   Handled 2 incoming stanzas
Oct 06 21:43:07 c2s9db7560      debug   Received[c2s]: <iq id='monal89383' type='get' to='xmpp.eightysoft.de'>
Oct 06 21:43:07 c2s9db7560      debug   #queue = 2
Oct 06 21:43:07 c2s9db7560      debug   Handled 3 incoming stanzas
Oct 06 21:43:07 c2s9db7560      debug   Received[c2s]: <iq id='monal89383' type='get' to='xmpp.eightysoft.de'>
Oct 06 21:43:07 c2s9db7560      debug   #queue = 3
Oct 06 21:43:07 c2s9db7560      debug   Handled 4 incoming stanzas
Oct 06 21:43:07 c2s9db7560      debug   Received[c2s]: <iq id='monal89383' type='get'>

You should use uuids as stanza ids to avoid all sorts of id clashes.

@anurodhp
Copy link
Contributor

good catch. ancient code. switching to UUID

@tmolitor-stud-tu
Copy link
Member Author

very nice, thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants