From c471dfb201d77f96ab678564af2840249c0df184 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 2 Oct 2019 13:00:01 +0100 Subject: [PATCH] Fix sub topics being limited to 200 chars instead of 200 levels Closes #1441. Thanks to Christoph Krey. --- ChangeLog.txt | 2 + src/subs.c | 2 +- test/broker/02-subpub-qos0-long-topic.py | 50 ++++++++++++++++++++++++ test/broker/Makefile | 1 + test/broker/test.py | 1 + 5 files changed, 55 insertions(+), 1 deletion(-) create mode 100755 test/broker/02-subpub-qos0-long-topic.py diff --git a/ChangeLog.txt b/ChangeLog.txt index 1b8e2355..bcf7c3c8 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -3,6 +3,8 @@ Broker: not being set correctly. Closes #1429. - Fix incorrect memory tracking causing problems with memory_limit option. Closes #1437. +- Fix subscription topics being limited to 200 characters instead of 200 + hierarchy levels. Closes #1441. Client library: - Fix publish properties not being passed to on_message_v5 callback for QoS 2 diff --git a/src/subs.c b/src/subs.c index 266669e8..fc62bef8 100644 --- a/src/subs.c +++ b/src/subs.c @@ -243,9 +243,9 @@ static int sub__topic_tokenise(const char *subtopic, struct sub__token **topics) stop = 0; for(i=start; i