Change max_queued_messages default to 1000.

pull/1919/head
Roger A. Light 5 years ago
parent 621d3832c4
commit 4667c9d5bc

@ -83,6 +83,7 @@ Broker:
username. Closes #1891. username. Closes #1891.
- Fix file logging on Windows. Closes #1880. - Fix file logging on Windows. Closes #1880.
- Fix bridge sock not being removed from sock hash on error. Closes #1897. - 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 library:
- Client no longer generates random client ids for v3.1.1 clients, these are - Client no longer generates random client ids for v3.1.1 clients, these are

@ -671,7 +671,7 @@ log_timestamp_format %Y-%m-%dT%H:%M:%S
<listitem> <listitem>
<para>The maximum number of QoS 1 or 2 messages to hold in the <para>The maximum number of QoS 1 or 2 messages to hold in the
queue (per client) above those messages that are currently 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 recommended). See also the
<option>queue_qos0_messages</option> and <option>queue_qos0_messages</option> and
<option>max_queued_bytes</option> options.</para> <option>max_queued_bytes</option> options.</para>

@ -98,11 +98,11 @@
#max_queued_bytes 0 #max_queued_bytes 0
# The maximum number of QoS 1 and 2 messages to hold in a queue per client # 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). # to 0 for no maximum (not recommended).
# See also queue_qos0_messages. # See also queue_qos0_messages.
# See also max_queued_bytes. # 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 # 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 # allocate, and hence sets a hard limit on memory use by the broker. Memory

@ -609,7 +609,7 @@ int config__read(struct mosquitto__config *config, bool reload)
cr.log_type_set = 0; cr.log_type_set = 0;
cr.max_inflight_bytes = 0; cr.max_inflight_bytes = 0;
cr.max_queued_bytes = 0; cr.max_queued_bytes = 0;
cr.max_queued_messages = 100; cr.max_queued_messages = 1000;
if(!db.config_file) return 0; if(!db.config_file) return 0;

Loading…
Cancel
Save