Skip to content

Commit

Permalink
Fix $SYS/broker/version being incorrectly expired after 60 seconds.
Browse files Browse the repository at this point in the history
Close #1245. Thanks to Christoph Krey.
  • Loading branch information
ralight committed Apr 30, 2019
1 parent f64d3b1 commit e742c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Broker:
- Fix Will message not allowing user-property properties.
- Fix broker originated messages (e.g. $SYS/broker/version) not being
published when `check_retain_source` set to true. Closes #1245.
- Fix $SYS/broker/version being incorrectly expired after 60 seconds.
Closes #1245.

Library:
- Fix crash after client has been unable to connect to a broker. This occurs
Expand Down
2 changes: 1 addition & 1 deletion src/sys_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void sys_tree__init(struct mosquitto_db *db)

/* Set static $SYS messages */
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)
Expand Down

0 comments on commit e742c1c

Please sign in to comment.