Changelog update.

Fix reconnecting for bridges that use TLS on Windows.

Closes #154.

Thanks to Dmitry Kaukov.
pull/198/head
Roger A. Light 10 years ago
parent 606aa5b4fa
commit 3048c5ba0d

@ -12,6 +12,7 @@ Broker:
- Fix incorrect $SYS heap memory reporting when using ACLs.
- Bridge config parameters couldn't contain a space, this has been fixed.
Closes #150.
- Fix reconnecting for bridges that use TLS on Windows. Closes #154.
Client library:
- Fix the case where a message received just before the keepalive timer

@ -140,6 +140,11 @@ static int mqtt3_db_message_store_write(struct mosquitto_db *db, FILE *db_fptr)
stored = db->msg_store;
while(stored){
if(!strncmp(stored->topic, "$SYS", 4)){
if(stored->ref_count == 1 && stored->dest_id_count == 0){
/* $SYS messages that are only retained shouldn't be persisted. */
stored = stored->next;
continue;
}
/* Don't save $SYS messages as retained otherwise they can give
* misleading information when reloaded. They should still be saved
* because a disconnected durable client may have them in their

Loading…
Cancel
Save