Thanks to chenzhenianqing.
pull/211/merge
Roger A. Light 11 years ago
parent 885d8ca5db
commit 8efb4f9334

@ -18,6 +18,8 @@ Broker:
- When a durable client reconnects, its queued messages are now checked
against ACLs in case of a change in username/ACL state since it last
connected.
- Fix bug #1324411, which could have had unexpected consequences for delayed
messages in rare circumstances.
- Anonymous clients are no longer accidently disconnected from the broker
after a SIGHUP.

@ -621,7 +621,7 @@ int mqtt3_db_message_timeout_check(struct mosquitto_db *db, unsigned int timeout
{
int i;
time_t threshold;
enum mosquitto_msg_state new_state = mosq_ms_invalid;
enum mosquitto_msg_state new_state;
struct mosquitto *context;
struct mosquitto_client_msg *msg;
@ -633,6 +633,7 @@ int mqtt3_db_message_timeout_check(struct mosquitto_db *db, unsigned int timeout
msg = context->msgs;
while(msg){
new_state = mosq_ms_invalid;
if(msg->timestamp < threshold && msg->state != mosq_ms_queued){
switch(msg->state){
case mosq_ms_wait_for_puback:

Loading…
Cancel
Save