Skip to content

Conversation

@lizhanhui
Copy link

@lizhanhui lizhanhui commented Aug 9, 2025

Please make sure that the following boxes are checked before submitting your Pull Request, thank you!

  • This change is against the develop branch, not master.
  • You have signed the Eclipse ECA
  • All of your commits have been signed-off with the correct email address (the same one that you
    used to sign the CLA) Hint: use the -s argument when committing.
  • If This PR fixes an issue, that you reference the issue below. OR if this is a new issue that
    you are fixing straight away that you add some Description about the bug and how this will fix it.
  • If this is new functionality, You have added the appropriate Unit tests.

Analyze AUTH packet, the reserved part of the fixed header:
Clipboard_Screenshot_1754711986

According to MQTT protocol 5.0 AUTH packet, fixed header, byte 1, reserved part shall be all 0:
Clipboard_Screenshot_1754712087

1.2.5 client, when talking to netty-mqtt-codec server, an error reports:

io.netty.handler.codec.DecoderException: Illegal BIT 0 in fixed header of AUTH message, must be 0, found 1

This pull request fixes:

#980

#981

Associated with contributions from
  eclipse-paho#980
  eclipse-paho#981

Signed-off-by: Li Zhanhui <[email protected]>
@lizhanhui lizhanhui force-pushed the fix/auth-fixed-header branch from 76bdaaf to 9aa64bf Compare August 9, 2025 03:57
@lizhanhui lizhanhui changed the title Fix/auth fixed header Fix AUTH packet fixed header Aug 9, 2025
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

Successfully merging this pull request may close these issues.

1 participant