Skip to content

Commit

Permalink
Fix TLS Websockets clients not receiving messages.
Browse files Browse the repository at this point in the history
This can occurs after one client takes over a previous connection.

Closes #1489. Thanks to Bas Verhoeven.
  • Loading branch information
ralight committed Nov 6, 2019
1 parent c052950 commit 05171b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Expand Up @@ -13,6 +13,8 @@ Broker:
restored from persistence. Closes #1464.
- Fix messages with an expiry interval being sent without an expiry interval
property just before they were expired. Closes #1464.
- Fix TLS Websockets clients not receiving messages after taking over a
previous connection. Closes #1489.

Client library:
- Fix publish properties not being passed to on_message_v5 callback for QoS 2
Expand Down
3 changes: 3 additions & 0 deletions src/handle_connect.c
Expand Up @@ -160,6 +160,9 @@ int connect__on_authorised(struct mosquitto_db *db, struct mosquitto *context, v
}
}

if(context->clean_start == true){
sub__clean_session(db, found_context);
}
session_expiry__remove(found_context);
will_delay__remove(found_context);
will__clear(found_context);
Expand Down

0 comments on commit 05171b2

Please sign in to comment.