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

Topic Names length limit to 200 #1441

ckrey opened this issue Oct 2, 2019 · 2 comments


Copy link

@ckrey ckrey commented Oct 2, 2019


The changes to src/subs.c effectively limit the length of a Topic Name to 200, not just the
number of hierarchy levels as intended.

$ mosquitto_pub -m 'topic too long' -d -q 2 -t '123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789'
Client mosq-T8zmW8VvLMUGMhpTjZ sending CONNECT
Client mosq-T8zmW8VvLMUGMhpTjZ received CONNACK (0)
Client mosq-T8zmW8VvLMUGMhpTjZ sending PUBLISH (d0, q2, r0, m1, '123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789/123456789', ... (14 bytes))
Client mosq-T8zmW8VvLMUGMhpTjZ received PUBREC (Mid: 1)
Client mosq-T8zmW8VvLMUGMhpTjZ sending PUBREL (m1)
Error: The connection was lost.

This comment has been minimized.

Copy link

@ralight ralight commented Oct 2, 2019

Thanks Christoph, that's now fixed in the fixes branch.


This comment has been minimized.

Copy link

@ckrey ckrey commented Oct 2, 2019

Thanks Roger for the quick fix. Tested and confirmed

@ralight ralight closed this in c471dfb Dec 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.