Skip to content

Commit

Permalink
Change max_queued_messages default to 1000.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Nov 24, 2020
1 parent 621d383 commit 4667c9d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Broker:
username. Closes #1891.
- Fix file logging on Windows. Closes #1880.
- Fix bridge sock not being removed from sock hash on error. Closes #1897.
- Default for max_queued_messages has been changed to 1000.

Client library:
- Client no longer generates random client ids for v3.1.1 clients, these are
Expand Down
2 changes: 1 addition & 1 deletion man/mosquitto.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ log_timestamp_format %Y-%m-%dT%H:%M:%S
<listitem>
<para>The maximum number of QoS 1 or 2 messages to hold in the
queue (per client) above those messages that are currently
in flight. Defaults to 100. Set to 0 for no maximum (not
in flight. Defaults to 1000. Set to 0 for no maximum (not
recommended). See also the
<option>queue_qos0_messages</option> and
<option>max_queued_bytes</option> options.</para>
Expand Down
4 changes: 2 additions & 2 deletions mosquitto.conf
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@
#max_queued_bytes 0

# The maximum number of QoS 1 and 2 messages to hold in a queue per client
# above those that are currently in-flight. Defaults to 100. Set
# above those that are currently in-flight. Defaults to 1000. Set
# to 0 for no maximum (not recommended).
# See also queue_qos0_messages.
# See also max_queued_bytes.
#max_queued_messages 100
#max_queued_messages 1000
#
# This option sets the maximum number of heap memory bytes that the broker will
# allocate, and hence sets a hard limit on memory use by the broker. Memory
Expand Down
2 changes: 1 addition & 1 deletion src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ int config__read(struct mosquitto__config *config, bool reload)
cr.log_type_set = 0;
cr.max_inflight_bytes = 0;
cr.max_queued_bytes = 0;
cr.max_queued_messages = 100;
cr.max_queued_messages = 1000;

if(!db.config_file) return 0;

Expand Down

0 comments on commit 4667c9d

Please sign in to comment.