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

Duplicated messageId #123

Open
lacourte opened this issue Jun 11, 2020 · 0 comments
Open

Duplicated messageId #123

lacourte opened this issue Jun 11, 2020 · 0 comments

Comments

@lacourte
Copy link

This problem has been raised in the context of a test program, publishing a very large number of QoS 1 messages. It triggers the following message:
java.net.ProtocolException: Command from server contained an invalid message id:

When a QoS 1 PUBLISH message is sent, an entry is created in the requests table of CallbackConnection. The entry is removed when the matching PUBACK message is processed. If for any reason the broker is slowed down, the messageId counter of the client may loop, and a second message with the same messageId may be sent while the first message is still in the requests table. The corresponding entry in the table is then overridden and the client is then corrupted.

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

1 participant