Fix $SYS/broker/version being incorrectly expired after 60 seconds.
Close #1245. Thanks to Christoph Krey.
This commit is contained in:
parent
f64d3b1e5c
commit
e742c1c2f1
@ -10,6 +10,8 @@ Broker:
|
|||||||
- Fix Will message not allowing user-property properties.
|
- Fix Will message not allowing user-property properties.
|
||||||
- Fix broker originated messages (e.g. $SYS/broker/version) not being
|
- Fix broker originated messages (e.g. $SYS/broker/version) not being
|
||||||
published when `check_retain_source` set to true. Closes #1245.
|
published when `check_retain_source` set to true. Closes #1245.
|
||||||
|
- Fix $SYS/broker/version being incorrectly expired after 60 seconds.
|
||||||
|
Closes #1245.
|
||||||
|
|
||||||
Library:
|
Library:
|
||||||
- Fix crash after client has been unable to connect to a broker. This occurs
|
- Fix crash after client has been unable to connect to a broker. This occurs
|
||||||
|
@ -52,7 +52,7 @@ void sys_tree__init(struct mosquitto_db *db)
|
|||||||
|
|
||||||
/* Set static $SYS messages */
|
/* Set static $SYS messages */
|
||||||
snprintf(buf, 64, "mosquitto version %s", VERSION);
|
snprintf(buf, 64, "mosquitto version %s", VERSION);
|
||||||
db__messages_easy_queue(db, NULL, "$SYS/broker/version", SYS_TREE_QOS, strlen(buf), buf, 1, 60, NULL);
|
db__messages_easy_queue(db, NULL, "$SYS/broker/version", SYS_TREE_QOS, strlen(buf), buf, 1, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sys_tree__update_clients(struct mosquitto_db *db, char *buf)
|
static void sys_tree__update_clients(struct mosquitto_db *db, char *buf)
|
||||||
|
Loading…
Reference in New Issue
Block a user