Commit Graph

2655 Commits

Author SHA1 Message Date
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
Roger A. Light
54df92cdc9 Add references to dynsec plugin in mosquitto.conf(5)
Closes #2089. Thanks to YerayAlonso.
2021-04-03 11:43:33 +01:00
Roger A. Light
983dc14f2c Provide help for users trying to bind to privileged ports.
Closes #2098.
2021-04-03 11:33:57 +01:00
Roger A. Light
eead0d2943 Fix build on Solaris non-sparc.
Closes #2136. Thanks to chuckunix.
2021-04-03 11:15:13 +01:00
Roger A. Light
6a4a547892 Fix segfault on client sending malformed CONNACk.
CVE-xxxx-xxxx: If an authenticated client connected with MQTT v5 sent a
malformed CONNACK message to the broker a NULL pointer dereference occurred,
most likely resulting in a segfault. This will be updated with the CVE
number when it is assigned.
Affects versions 2.0.0 to 2.0.9 inclusive.

Closes #2163. Thanks to Bryan Pearson.
2021-04-03 11:14:27 +01:00
Roger A. Light
cde735a480 Add issue template. 2021-04-03 11:06:15 +01:00
Roger Light
6ebbb4d654 Fix possible socket leak.
This would occur if a client was using `mosquitto_loop_start()`, then if
the connection failed due to the remote server being inaccessible they
called `mosquitto_loop_stop(, true)` and recreated the mosquitto object.

See: https://www.eclipse.org/forums/index.php?t=rview&goto=1839865#msg_1839865
2021-04-02 11:03:01 +01:00
Roger Light
117e59b7cf Fix CMake cross compile builds not finding opensslconf.h.
Closes #2160. Thanks to Ozaq.
2021-04-01 21:53:13 +01:00
Roger A. Light
4ee03f21e3 Guard against missing UNUSED. 2021-03-29 17:07:40 +01:00
Roger A. Light
7d214a445d Fix TLS-PSK mode not working with port 8883.
Closes #2152. Thanks to jetpax.
2021-03-26 11:06:57 +00:00
Roger A. Light
3ac2c3ee09 Improve mosquitto_ctrl documentation. 2021-03-26 10:42:18 +00:00
Roger A. Light
20e154c1dd Add missing config file. 2021-03-25 20:41:50 +00:00
Roger A. Light
27ca78ba60 Bring generic Dockerfile in line with 2.0-openssl. 2021-03-25 16:20:22 +00:00
Roger A. Light
e32bd8fb92 Add info on config-less docker to the generic image readme. 2021-03-25 15:56:27 +00:00
Roger A. Light
71366fd569 Add mosquitto_ctrl options 2021-03-23 21:49:47 +00:00
Roger Light
0f9e5795a2
Merge pull request #2145 from abiliojr/empty_sockpairR
Fully empty sockpairR on interruptible_sleep
2021-03-22 10:34:57 +00:00
Roger Light
1c6571a83a
Merge pull request #2144 from abiliojr/fix_duplicates_on_connect
fix duplication of messages during connect
2021-03-22 10:34:04 +00:00
Abilio Marques
dd4a64b049 fully empty socketpairR on interruptible_sleep
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-03-22 08:15:47 +01:00
Abilio Marques
91f34e084f fix duplication of messages during connect
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-03-22 07:59:37 +01:00
Roger Light
a5d9986cbd More compiler warning fixes. 2021-03-21 22:50:48 +00:00
Roger Light
2de8c15bc9 Minor build fixes. 2021-03-21 09:18:43 +00:00
Roger Light
cca41d176d Fix inconsistent sign in log__printf declaration. 2021-03-20 19:16:43 +00:00
Roger Light
9989a3502d Add link to authentication options if running in local only mode. 2021-03-20 10:33:58 +00:00
Roger Light
a6bb8d3611 Don't over write new receive-maximum if a v5 client connects.
This is for when it takes over an old session.

Closes #2134. Thanks to Frantisek Fuka.
2021-03-14 22:12:10 +00:00
Roger Light
9faf89be8d Set receive-maximum to not exceed the -C message count.
This is for mosquitto_sub and mosquitto_rr, to avoid potentially lost
messages.

Closes #2134. Thanks to Frantisek Fuka.
2021-03-14 19:24:56 +00:00
Roger A. Light
9f21a43eee Update docker. 2021-03-11 22:45:42 +00:00
Roger A. Light
c03c6b765e Merge branch 'fixes' 2021-03-11 22:35:31 +00:00
Roger A. Light
bb73eed557 Bump version number and update web pages. 2021-03-11 22:33:01 +00:00
Roger A. Light
f8838243fb Fix connections retrying very rapidly in some situations.
Thanks to Abilio Marques.
2021-03-11 21:04:51 +00:00
Roger A. Light
891be8c2fe Fix max_keepalive option not applying to keepalive=0.
Closes #2117. Thanks to David Nadlinger.
2021-03-11 19:58:47 +00:00
Roger A. Light
1109f53fbf Merge branch 'vidarino-master' into fixes 2021-03-11 19:58:43 +00:00
Roger A. Light
720ce01faf Minor tweaks to PR. 2021-03-11 15:21:49 +00:00
Roger A. Light
87cf3680e5 Merge branch 'master' of git://github.com/vidarino/mosquitto into vidarino-master 2021-03-11 15:15:30 +00:00
Roger A. Light
f4d088b6d0 Improve logging of pull request.
Improve handling of invalid combinations of listener address and bind
interface configurations. Closes #2081.
2021-03-11 15:09:38 +00:00
Roger A. Light
095d6e1caa Merge branch 'mosterdt-fix_interface_binding' into fixes 2021-03-11 15:04:57 +00:00
Roger A. Light
88d2c74ab2 Fix bridge backoff calculation. 2021-03-11 15:02:31 +00:00
Roger A. Light
9a87603a64 Merge branch 'abiliojr-fix-backoff' into fixes 2021-03-11 14:02:04 +00:00
Roger A. Light
4b0a4c5c08 Merge branch 'fix-backoff' of git://github.com/abiliojr/mosquitto into abiliojr-fix-backoff 2021-03-11 14:01:47 +00:00
Roger A. Light
c11a2d5a8b Fix mosquitto_rr doc default version.
Closes #2032.
2021-03-11 14:00:08 +00:00
Roger A. Light
8a5de787a7 Merge branch 'fix_interface_binding' of git://github.com/mosterdt/mosquitto into mosterdt-fix_interface_binding 2021-03-11 13:44:53 +00:00
Roger A. Light
b7a08d5c40 Fix TLS bridge/lib incorrectly connecting on invalid CA file.
Closes #2130. Thanks to becz.
2021-03-11 12:45:04 +00:00
Roger Light
ace2aa764e Fix cmake epoll detection. 2021-03-08 23:57:04 +00:00
Roger A. Light
e401def06d Fix QoS 0 messages not being delivered when max_queued_bytes was configured.
Closes #2123. Thanks to quackgizmo.
2021-03-08 23:23:45 +00:00
Roger A. Light
f89a3c3fc0 Fix messages to $ prefixed topics being rejected.
Closes #2111. Thanks to yellowgg2.
2021-03-06 00:57:37 +00:00
Roger A. Light
7baca428da Remove obsolete tests. 2021-03-04 09:49:29 +00:00
Roger Light
83334afee8 Remove redunant function delaration. 2021-03-03 22:44:50 +00:00
Roger Light
64f697d55d Fix tls_version behaviour not matching documentation.
It was setting the exact TLS version to use, not the minimium TLS
version to use.

Closes #2110. Thanks to Petter Jönsson.
2021-03-03 22:21:24 +00:00
Roger A. Light
5c45bc4e84 Improve Docker no-auth mode.
Remove use of environment variable, instruct users to run a specific
command instead.
2021-03-03 17:14:16 +00:00
Abilio Marques
2a38b7115b brige: fix backoff not working for remote broker returned errors
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
2021-02-26 01:00:48 +01:00