Sitelet https://github.com/processone/tsung/pull/327
Skip to content

mqtt subscribe packet MUST set qos to 1 for the fixed header - #327

Merged
tisba merged 2 commits into
processone:developfrom
Navgeet:fix-mqtt-sub
Aug 22, 2018
Merged

tisba merged 2 commits into
processone:developfrom
Navgeet:fix-mqtt-sub

Conversation

@Navgeet

@Navgeet Navgeet commented Aug 18, 2018

Copy link
Copy Markdown
Contributor

Hi, I discovered this while testing with VerneMQ. According to the MQTT spec, bits 3,2,1 and 0 of the fixed header of the SUBSCRIBE Control Packet are reserved and MUST be set to 0,0,1 and 0 respectively. Tsung sets these to 0,0,0,0 which causes VerneMQ to drop the connection.

https://docs.solace.com/MQTT-311-Prtl-Conformance-Spec/MQTT%20Control%20Packets.htm#_Toc430864927

@tisba

tisba commented Aug 22, 2018

Copy link
Copy Markdown
Collaborator

Hey @Navgeet! Thanks for your contribution. Could you take a quick look at #272? Your change seems to be related.

Other then that, thanks also for pointing out to the spec. Although I'm not familiar with MQTT I can follow your reasoning and change set 👍

@Navgeet

Navgeet commented Aug 22, 2018

Copy link
Copy Markdown
Contributor Author

Hey @tisba thanks for pointing out the other issue. Yes, it's an exact duplicate.

@tisba
tisba merged commit 2ea3e10 into processone:develop Aug 22, 2018
@nniclausse nniclausse added this to the 1.8.0 milestone Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants