[461620] Inflight limits should only apply to outgoing messages.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=461620
pull/211/merge
Roger A. Light 11 years ago
parent 28404350c4
commit e310092f44

@ -1,6 +1,9 @@
Broker:
- Fix possible crash when using pattern ACLs.
Client library:
- Inflight limits should only apply to outgoing messages. Closes #461620.
1.4 - 20150218
==============

@ -121,11 +121,11 @@ void _mosquitto_message_queue(struct mosquitto *mosq, struct mosquitto_message_a
mosq->out_messages = message;
}
mosq->out_messages_last = message;
}else{
mosq->in_queue_len++;
if(message->msg.qos > 0 && (mosq->max_inflight_messages == 0 || mosq->inflight_messages < mosq->max_inflight_messages)){
mosq->inflight_messages++;
}
}else{
mosq->in_queue_len++;
message->next = NULL;
if(mosq->in_messages_last){
mosq->in_messages_last->next = message;

Loading…
Cancel
Save