Skip to content

Commit

Permalink
Fix will sending for duplicate clients.
Browse files Browse the repository at this point in the history
When a client with an in-use client-id connects, if the old client has a
will, send the will message. Closes #26.

Thanks to Pierre F.
  • Loading branch information
ralight committed Apr 11, 2018
1 parent 943b311 commit 5ff8127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Broker fixes:
- Fix CONNACK message not being sent for unauthorised connect on websockets.
Closes #8.
- Maximum connections on Windows increased to 2048.
- When a client with an in-use client-id connects, if the old client has a
will, send the will message. Closes #26.

Client library features:
- Outgoing messages with QoS>1 are no longer retried after a timeout period.
Expand Down
1 change: 0 additions & 1 deletion src/handle_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ int handle__connect(struct mosquitto_db *db, struct mosquitto *context)
}

found_context->clean_session = true;
found_context->state = mosq_cs_disconnecting;
do_disconnect(db, found_context);
}

Expand Down

0 comments on commit 5ff8127

Please sign in to comment.