-
Notifications
You must be signed in to change notification settings - Fork 13
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
Not unique Package.ID generation. #101
Comments
Workaround it simply -- I've just assigned my own id to the packet. But it would be great to fix it on Jabber-net side. Suppose, the fix would be easy enough, something like |
Ah my gosh, this library is full of threading problems. Thanks for your wonderful unit test, I'll take a look. |
The bug is in JabberNet/jabber/protocol/Element.cs, method NextID. It should be changed as follows:
|
Thanks for your help, it definitely was an issue highlighted by @pomoika. It's fixed now and I've published a new preview release 3.0.0-preview3. |
It seems like both
IQ
andMessage
classes (inherited fromPackage
) incorrectly generates ID values when interacting with multiple threads. Sometimes these classes may produce the ID was generated before.Tested on latest Jabber-net version too.
Please find below simply UnitTest with reproduction this issue almost constantly.
The text was updated successfully, but these errors were encountered: