Thanks to chenzhenianqing.
Roger A. Light 11 years ago committed by Roger Light
parent 3d89aff053
commit 0e89bb2f0c

@ -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