From c944f840a68a3b46cff1e417ef4ffce7f629925a Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 14 Mar 2019 10:58:15 +0000 Subject: [PATCH] Don't advertise shared subs as unavailable any more. --- src/send_connack.c | 7 ------- test/mosq_test.py | 1 - 2 files changed, 8 deletions(-) diff --git a/src/send_connack.c b/src/send_connack.c index 5c582e52..384c1a6f 100644 --- a/src/send_connack.c +++ b/src/send_connack.c @@ -60,13 +60,6 @@ int send__connack(struct mosquitto_db *db, struct mosquitto *context, int ack, i } } - /* FIXME - disable support until available */ - rc = mosquitto_property_add_byte(&connack_props, MQTT_PROP_SHARED_SUB_AVAILABLE, 0); - if(rc){ - mosquitto_property_free_all(&connack_props); - return rc; - } - proplen = property__get_length_all(connack_props); varbytes = packet__varint_bytes(proplen); remaining_length += proplen + varbytes; diff --git a/test/mosq_test.py b/test/mosq_test.py index 23428f53..9142c2c9 100644 --- a/test/mosq_test.py +++ b/test/mosq_test.py @@ -389,7 +389,6 @@ def gen_connect(client_id, clean_session=True, keepalive=60, username=None, pass def gen_connack(flags=0, rc=0, proto_ver=4, properties=""): if proto_ver == 5: - properties += mqtt5_props.gen_byte_prop(mqtt5_props.PROP_SHARED_SUB_AVAILABLE, 0) properties = mqtt5_props.prop_finalise(properties) packet = struct.pack('!BBBB', 32, 2+len(properties), flags, rc) + properties