Fix will sending for duplicate clients.

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.
This commit is contained in:
Roger A. Light 2018-04-11 23:17:17 +01:00
parent 943b311344
commit 5ff8127f44
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,8 @@ Broker fixes:
- Fix CONNACK message not being sent for unauthorised connect on websockets. - Fix CONNACK message not being sent for unauthorised connect on websockets.
Closes #8. Closes #8.
- Maximum connections on Windows increased to 2048. - 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: Client library features:
- Outgoing messages with QoS>1 are no longer retried after a timeout period. - Outgoing messages with QoS>1 are no longer retried after a timeout period.

View File

@ -558,7 +558,6 @@ int handle__connect(struct mosquitto_db *db, struct mosquitto *context)
} }
found_context->clean_session = true; found_context->clean_session = true;
found_context->state = mosq_cs_disconnecting;
do_disconnect(db, found_context); do_disconnect(db, found_context);
} }