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

Sets clientId into Channel's attribute immediately after processing he CONNECT message #708

Merged

Conversation

andsel
Copy link
Collaborator

@andsel andsel commented Jan 27, 2023

MQTT 3.1.1 specification, MQTT-3.1.4-5 says that Clients are allowed to send further Control Packets immediately after sending a CONNECT Packet. In this case a PUBLISH is could be sent immediately after the CONNECT, so it's processed serially by the same IO thread. The PUBLISH needs to accees the clientID attribute of the Channel, so it needs be set before the CONNACK in write&flush.

Fixes #705

…he connect

MQTT 3.1.1 specification, MQTT-3.1.4-5 says that Clients are allowed to send further Control Packets immediately after sending a CONNECT Packet.
In this case a PUBLISH is could be sent immediately after the CONNECT, so it's processed serially by the same IO thread.
The PUBLISH needs to accees the clientID attribute of the Channel, so it needs be set before the CONNACK in write&flush.
@andsel andsel self-assigned this Jan 27, 2023
@andsel andsel added the v0.17.0 label Jan 27, 2023
@andsel andsel merged commit e24df9e into moquette-io:main Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors when updating moquette-broker from 0.15 to 0.16
1 participant