Skip to content

Commit

Permalink
Fix max_inflight_messages not being set correctly.
Browse files Browse the repository at this point in the history
Closes #2876.
  • Loading branch information
ralight committed Aug 22, 2023
1 parent 47ae6dd commit 28d96d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ChangeLog.txt
@@ -1,9 +1,10 @@
2.0.16 - 2023-08-22
2.0.17 - 2023-08-22
===================

Broker:
- Fix `max_queued_message 0` stopping clients from receiving messages.
- Fix `max_queued_messages 0` stopping clients from receiving messages.
Closes #2879.
- Fix `max_inflight_messages` not being set correctly. Closes #2876.

Apps:
- Fix `mosquitto_passwd -U` backup file creation. Closes #2873.
Expand Down
4 changes: 2 additions & 2 deletions src/context.c
Expand Up @@ -83,9 +83,9 @@ struct mosquitto *context__init(mosq_sock_t sock)
}
}
context->bridge = NULL;
context->msgs_in.inflight_maximum = 1;
context->msgs_in.inflight_maximum = db.config->max_inflight_messages;
context->msgs_in.inflight_quota = db.config->max_inflight_messages;
context->msgs_out.inflight_maximum = db.config->max_inflight_messages;
context->msgs_in.inflight_quota = 1;
context->msgs_out.inflight_quota = db.config->max_inflight_messages;
context->max_qos = 2;
#ifdef WITH_TLS
Expand Down

0 comments on commit 28d96d8

Please sign in to comment.