Change max_queued_messages default to 1000.

This commit is contained in:
Roger A. Light 2020-11-23 17:28:29 +00:00
parent 621d3832c4
commit 4667c9d5bc
4 changed files with 5 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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