Commit Graph

2753 Commits

Author SHA1 Message Date
Roger A. Light
99d7299b24 Fix qos0 messages not being queued when queue_qos0_message enabled.
Closes #2224. Thanks to Luigi Caiffa.
2021-06-09 13:21:27 +01:00
Roger A. Light
ea7e2a6bca Bump version, add post. 2021-06-08 22:27:07 +01:00
Roger A. Light
8416f928df Revert premature want_connect fix. 2021-06-08 22:26:14 +01:00
Roger A. Light
42163634c7 Fix leak on crafted MQTT v5 CONNECT.
If a MQTT v5 client connects with a crafted CONNECT packet a memory leak
will occur.

Thanks to Kathrin Kleinhammer.
2021-06-08 22:26:09 +01:00
Roger A. Light
403691ce40 Add missing return types. 2021-06-08 22:25:59 +01:00
Roger A. Light
238b68686a Fix bridge pollfd corruption on Windows.
Closes #2173. Thanks to Niclas Lindgren.
2021-06-08 13:29:29 +01:00
Roger A. Light
104b94db57 Fix non-reachable bridge blocking the broker on Windows.
Closes #2172. Thanks to Niclas Lindgren.
2021-06-08 12:07:24 +01:00
Roger A. Light
5851713f3e Refactor to remove duplicate code. 2021-06-08 12:00:05 +01:00
Roger A. Light
625e2a5060 Refactor to remove duplicate code. 2021-06-08 11:59:12 +01:00
Roger A. Light
0e1388a615 Fix the return of plugin__handle_message not being fully handled. 2021-05-21 14:54:28 +01:00
Roger A. Light
90e3b287de Remove redundant check, this is handled in send__pubrec. 2021-05-21 14:18:27 +01:00
Roger A. Light
a01dcd68a5 Document that bind_address can be NULL. 2021-05-20 10:21:05 +01:00
Roger A. Light
58c0c0cef4 Document dynsec plugin location for Linux. 2021-05-19 14:43:45 +01:00
Roger A. Light
99833795f2 Man page improvements - document MQTT support. 2021-05-19 13:33:09 +01:00
Roger A. Light
b6187c8880 Dynsec doc tweaks. 2021-05-19 11:48:00 +01:00
Roger A. Light
2e2c9012ec Document reason for Windows connection limit. 2021-05-19 11:19:58 +01:00
Roger A. Light
16fb0025a7 Improve QoS 0 outgoing packet queueing. 2021-05-18 16:53:45 +01:00
Roger Light
c317891df1 Clarify when callbacks get called. 2021-05-18 09:38:06 +01:00
Roger A. Light
0db306ef6b Fix compiler warning. 2021-05-17 17:16:01 +01:00
Roger A. Light
4a08626f43 Only a single call to lws_write() is required. 2021-05-17 17:16:01 +01:00
Roger A. Light
ff872cf943 Upgrade docker images to lws 4.2.0. 2021-05-17 16:37:37 +01:00
Roger A. Light
5f34f27b5e Distribute licenses of self compiled components in docker images. 2021-05-17 16:27:19 +01:00
Roger Light
880df7360d Fix bridge not reconnectng if the first reconnection attempt fails.
Closes #2207. Thanks to Abilio Marques.
2021-05-17 00:49:44 +01:00
Roger Light
9bb58a88fc Cleanup messsage before return.
Coverity scan #1451483.
2021-05-16 19:57:59 +01:00
Roger A. Light
2ae13092f1 Update notice file. 2021-05-13 17:38:31 +01:00
Roger Light
07399c2f3c Fix mosquitto_pub -l quitting if broker unavailable.
This could occur when a message publication is attempted when the broker
is temporarily unavailable.

Closes #2187. Thanks to JsBergbau.
2021-05-08 23:07:02 +01:00
Roger A. Light
c8cd3590f1 Check for NULL. 2021-05-06 21:05:10 +01:00
Roger A. Light
a2ab20df13 Don't call read() if sockpairR < 0.
Coverity #1450782.
2021-05-06 21:04:49 +01:00
Roger A. Light
501690d312 Handle identifier==NULL case. 2021-04-28 09:21:50 +01:00
Roger Light
be78a26fe8 Fix pid paths in systemd unit. 2021-04-26 21:55:37 +01:00
Roger Light
b4c86df6f5 Fix missing control path.
Closes #2190. Thanks to RengeRenge.
2021-04-25 23:10:06 +01:00
Roger Light
e1c8f09372 Remove C++ style comments. 2021-04-25 22:26:12 +01:00
Roger Light
f29ed90e4a Merge branch 'bk138-fixes' into fixes 2021-04-25 22:12:37 +01:00
Roger Light
5434931dbc Merge branch 'fixes' of git://github.com/bk138/mosquitto into bk138-fixes 2021-04-25 22:10:30 +01:00
Roger A. Light
613489f735 Fix typo. 2021-04-20 21:09:08 +01:00
Roger A. Light
0446bba7df Fix some conversion warnings. 2021-04-19 09:37:20 +01:00
Christian Beier
fe10226cc9 Fix building with Visual Studio 2008
This older Microsoft compiler does not support mixing declarations and
code and misses some error defines. This commit enables building with
VS2008 by moving up some variable declarations and defining error
codes to their WinSock counterparts in case they're not defined.

Signed-off-by: Christian Beier <info@christianbeier.net>
2021-04-18 21:23:25 +02:00
Roger A. Light
d3dd89da82 Fix man page typos. 2021-04-18 09:10:27 +01:00
Roger Light
702aaabee2 mux init must happen before bridges are started. 2021-04-14 23:06:53 +01:00
Roger Light
d5ecd9f5aa Update CVE information. 2021-04-10 08:28:41 +01:00
Roger Light
f1f0396d86 Fix links in man pages. 2021-04-09 23:21:29 +01:00
Roger Light
c418b57d0f Fix possible crash having just upgraded from 1.6.
Happens if `per_listener_settings true` is set, and a SIGHUP is sent to
the broker before a client has reconnected to the broker.

Closes #2167. Thanks to momoskitto.
2021-04-08 23:29:46 +01:00
Roger A. Light
ec54bce037 Fix mosquitto_sub pipe close detection.
If sending mosquitto_sub output to a pipe, mosquitto_sub will now detect
that the pipe has closed and disconnect.

Closes #2164. Thanks to Frantisek Fuka.
2021-04-06 23:01:48 +01:00
Roger Light
229b1f752f
Merge pull request #2166 from mnhauke/master
CMake: Fix undefined symbols in plugins
2021-04-06 21:54:57 +01:00
Martin Hauke
e21eaeca37 CMake: Fix undefined symbols in plugins 2021-04-06 21:15:08 +02:00
Roger A. Light
ea46a8188e Add more documentation on pthread support. 2021-04-06 14:52:20 +01:00
Roger A. Light
34522913ea Update Windows readme. 2021-04-06 14:41:45 +01:00
Roger A. Light
1c79920d78 Update docker. 2021-04-03 13:50:40 +01:00
Roger A. Light
1a6fdfb695 Merge branch 'fixes' 2021-04-03 12:01:43 +01:00
Roger A. Light
e7aa0fed2f Bump version, update web page. 2021-04-03 12:00:33 +01:00