Version 2.0.8 released.

Version 2.0.8 of Mosquitto has been released. This is a bugfix release.

Broker

  • Fix incorrect datatypes in struct mosquitto_evt_tick. This changes the size and offset of two of the members of this struct, and changes the size of the struct. This is an ABI break, but is considered to be acceptable because plugins should never be allocating their own instance of this struct, and currently none of the struct members are used for anything, so a plugin should not be accessing them. It would also be safe to read/write from the existing struct parameters.
  • Give compile time warning if libwebsockets compiled without external poll support. Closes #2060.
  • Fix memory tracking not being available on FreeBSD or macOS. Closes #2096.

Client library

  • Fix mosquitto_{pub|sub}_topic_check() functions not returning MOSQ_ERR_INVAL on topic == NULL.

Clients

  • Fix possible loss of data in mosquitto_pub -l when sending multiple long lines. Closes #2078.

Build

  • Provide a mechanism for Docker users to run a broker that doesn't use authentication, without having to provide their own configuration file. Closes #2040.

Version 2.0.7 released.

Version 2.0.7 and 1.6.13 of Mosquitto have been released. These are bugfix releases.

2.0.7

Broker

  • Fix exporting of executable symbols on BSD when building via makefile.
  • Fix some minor memory leaks on exit only.
  • Fix possible memory leak on connect. Closes #2057.
  • Fix openssl engine not being able to load private key. Closes #2066.

Clients

  • Fix config files truncating options after the first space. Closes #2059.

Build

  • Fix man page building to not absolutely require xsltproc when using CMake. This now handles the case where we are building from the released tar, or building from git if xsltproc is available, or building from git if xsltproc is not available.

1.6.13

Broker:

  • Fix crash on Windows if loading a plugin fails. Closes #1866.
  • Fix DH group not being set for TLS connections, which meant ciphers using DHE couldn't be used. Closes #1925. Closes #1476.
  • Fix local bridges being disconnected on SIGHUP. Closes #1942.
  • Fix $SYS/broker/publish/messages/+ counters not being updated for QoS 1, 2 messages. Closes #1968.
  • Fix listener not being reassociated with client when reloading a persistence file and per_listener_settings true is set and the client did not set a username. Closes #1891.
  • Fix file logging on Windows. Closes #1880.
  • Fix bridge sock not being removed from sock hash on error. Closes #1897.

Client library:

  • Fix build on Mac Big Sur. Closes #1905.
  • Fix DH group not being set for TLS connections, which meant ciphers using DHE couldn't be used. Closes #1925. Closes #1476.

Clients:

  • mosquitto_sub will now quit with an error if the %U option is used on Windows, rather than just quitting. Closes #1908.
  • Fix config files truncating options after the first space. Closes #2059.

Apps:

  • Perform stricter parsing of input username in mosquitto_passwd. Closes #570126 (Eclipse bugzilla).

Build:

  • Enable epoll support in CMake builds.

Version 2.0.6 released.

Version 2.0.6 of Mosquitto has been released. This is a bugfix release.

Broker

  • Fix calculation of remaining length parameter for websockets clients that send fragmented packets. Closes #1974.
  • Fix potential duplicate Will messages being sent when a will delay interval has been set.
  • Fix message expiry interval property not being honoured in mosquitto_broker_publish and mosquitto_broker_publish_copy.
  • Fix websockets listeners with TLS not responding. Closes #2020.
  • Add notes that libsystemd-dev or similar is needed if building with systemd support. Closes #2019.
  • Improve logging in obscure cases when a client disconnects. Closes #2017.
  • Fix reloading of listeners where multiple listeners have been defined with the same port but different bind addresses. Closes #2029.
  • Fix message_size_limit not applying to the Will payload. Closes #2022.
  • The error topic-alias-invalid was being sent if an MQTT v5 client published a message with empty topic and topic alias set, but the topic alias hadn't already been configured on the broker. This has been fixed to send a protocol error, as per section 3.3.4 of the specification.
  • Note in the man pages that SIGHUP reloads TLS certificates. Closes #2037.
  • Fix bridges not always connecting on Windows. Closes #2043.

Apps

  • Allow command line arguments to override config file options in mosquitto_ctrl. Closes #2010.
  • mosquitto_ctrl: produce an error when requesting a new password if both attempts do not match. Closes #2011.

Build

  • Fix cmake builds using WITH_CJSON=no not working if cJSON not found. Closes #2026.

Other

  • The SPDX identifiers for EDL-1.0 have been changed to BSD-3-Clause as per The Eclipse legal documentation generator. The licenses are identical.

Version 2.0.5 released.

Version 2.0.5 of Mosquitto has been released. This is a bugfix release.

Broker

  • Fix auth_method not being provided to the extended auth plugin event. Closes #1975.
  • Fix large packets not being completely published to slow clients. Closes #1977.
  • Fix bridge connection not relinquishing POLLOUT after messages are sent. Closes #1979.
  • Fix apparmor incorrectly denying access to /var/lib/mosquitto/mosquitto.db.new. Closes #1978.
  • Fix potential intermittent initial bridge connections when using poll().
  • Fix bind_interface option. Closes #1999.
  • Fix invalid behaviour in dynsec plugin if a group or client is deleted before a role that was attached to the group or client is deleted. Closes #1998.
  • Improve logging in dynsec addGroupRole command. Closes #2005.
  • Improve logging in dynsec addGroupClient command. Closes #2008.

Client library

  • Improve documentation around the _v5() and non-v5 functions, e.g. mosquitto_publish() and `mosquitto_publish_v5().

Build

  • install Makefile target should depend on all, not mosquitto, to ensure that man pages are always built. Closes #1989.
  • Fixes for lots of minor build warnings highlighted by Visual Studio.

Apps

  • Disallow control characters in mosquitto_passwd usernames.
  • Fix incorrect description in mosquitto_ctrl man page. Closes #1995.
  • Fix mosquitto_ctrl dynsec getGroup not showing roles. Closes #1997.

Version 2.0.3 released.

Version 2.0.3 of Mosquitto has been released. This is a bugfix release.

Security

  • Running mosquitto_passwd with the following arguments only mosquitto_passwd -b password_file username password would cause the username to be used as the password.

Broker

  • Fix excessive CPU use on non-Linux systems when the open file limit is set high. Closes #1947.
  • Fix LWT not being sent on client takeover when the existing session wasn't being continued. Closes #1946.
  • Fix bridges possibly not completing connections when WITH_ADNS is in use. Closes #1960.
  • Fix QoS 0 messages not being delivered if max_queued_messages was set to 0. Closes #1956.
  • Fix local bridges being disconnected on SIGHUP. Closes #1942.
  • Fix slow initial bridge connections for WITH_ADNS=no.

Clients

  • Fix mosquitto_sub being unable to terminate with Ctrl-C if a successful connection is not made. Closes #1957.

Apps

  • Fix mosquitto_passwd -b using username as password (not if -c is also used). Closes #1949.

Build

  • Fix install target when using WITH_CJSON=no. Closes #1938.
  • Fix generic docker build. Closes #1945.

Version 2.0.4 released.

Version 2.0.4 of Mosquitto has been released. This is a bugfix release.

Broker

  • Fix $SYS/broker/publish/messages/+ counters not being updated for QoS 1, 2 messages. Closes #1968.
  • mosquitto_connect_bind_async() and mosquitto_connect_bind_v5() should not reset the bind address option if called with bind_address == NULL.
  • Fix dynamic security configuration possibly not being reloaded on Windows only. Closes #1962.
  • Add more log messages for dynsec load/save error conditions.
  • Fix websockets connections blocking non-websockets connections on Windows. Closes #1934.

Build

  • Fix man pages not being built when using CMake. Closes #1969.