1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-10-14 02:48:40 +08:00

3149 Commits

Author SHA1 Message Date
Roger A. Light
28f914788f Update dependency list for coverity-scan-develop 2025-08-10 08:24:09 +01:00
Joachim Zobel
1f31f14c3c Mosquitto now waits for network-online when starting (Closes: #1036450)
See: https://github.com/eclipse/mosquitto/issues/2878
2025-08-07 23:59:53 +01:00
Matt Turner
b6d59ddd23 test: Pass proto_ver to do_test() functions that require it
These test scripts all contain a `finally:` block that attempts to print
proto_ver which does not exist:

```
print("proto_ver=%d" % (proto_ver))
```

This mistake appears to be a copy-and-paste error in commit b2a9daf ("02
broker subpub tests with v5 support") and went unnoticed because the
code is only reached if the tests fail.

Fixes: b2a9daf1 ("02 broker subpub tests with v5 support")
Closes: https://github.com/eclipse-mosquitto/mosquitto/issues/3123
2025-08-04 18:38:47 +01:00
Roger A. Light
2fd2dbabfc Remove obsolete man page entry 2025-07-31 17:01:15 +01:00
Ben Marsh
af68d99c98 Fix CMake builds with WITH_TLS=OFF
Recent CMake changes caused CMake builds with the WITH_TLS option set to OFF to fail. The OpenSSL package is only found (find_package()) if WITH_TLS is ON, but linking to OpenSSL for the broker and library is not guarded by WITH_TLS. The build therefore fails.

Guard linking to OpenSSL, only linking if WITH_TLS is set.
2025-07-30 17:30:02 +01:00
Roger A. Light
ff1187fd9c Update Dockerfile for 2.0.22 2025-07-11 22:38:03 +01:00
Roger A. Light
766fa2c5a9 Merge branch 'fixes' v2.0.22 2025-07-11 22:06:10 +01:00
Roger A. Light
7b93a31ee5 Update download page and add release post. 2025-07-11 22:03:46 +01:00
Roger A. Light
f1ecfd4cc3 Bump changelog date 2025-07-11 17:54:11 +01:00
Roger A. Light
da34d3b6be Fix clients being incorrectly expired.
This would ocurr when they have keepalive == max_keepalive.

Closes #3226
Closes #3286
2025-07-11 17:53:19 +01:00
Roger A. Light
d785f84548 Fix crash on exit when using WITH_EPOLL=no.
Closes #3302. Thanks to Keyi-Wang.
2025-07-11 15:28:11 +01:00
Philippe Coval
733720fd20 t/Makefile: Generate test certs if not present in sources
Since generated keys have expiration date,
it means that the tests are not reproductible over time.
Integrator may be tempted to not rely on upstream files
and generate them on the fly at built time.

If need files are present this rule will be skip.

This change was motivated for maintenance of 2.0.11
in Debian 12 (stable).

I noticed that upstream regerated certs in master branch since,
but still they will expire in future.

Origin: https://github.com/eclipse-mosquitto/mosquitto/pull/3234
Relate-to: https://salsa.debian.org/debian-iot-team/mosquitto/-/merge_requests/21
Signed-off-by: Philippe Coval <rzr@users.sf.net>
2025-07-11 14:56:11 +01:00
Roger A. Light
d3a1f51186 Add debian tracker link to download page 2025-07-11 14:55:41 +01:00
Roger A. Light
598a3a2fc7 Add changelog entry
Closes #1211.
2025-07-11 14:52:59 +01:00
Roger A. Light
90a7b9106a Add changelog entry 2025-07-11 14:51:10 +01:00
Daniel Abrahamsson
4860e62c4c Use HTTP/1 for websockets
Fixes: #1211
Signed-off-by: Daniel Abrahamsson <daniel.abrahamsson@prover.com>
2025-07-11 14:50:15 +01:00
Jesús Fernández Manzano
e1ab3908c2 dynsec: use cJSON_free to deallocate cJSON_Print result
The JSON string produced by cJSON_Print() is allocated with cJSON_malloc()
and must be freed with cJSON_free(), not mosquitto_free(). Using the wrong
allocator caused Mosquitto’s memory-tracking counter to underflow, leading
to spurious "out of memory" errors on subsequent allocations which
render the broker unusable.

This change replaces mosquitto_free(json_str) with cJSON_free(json_str)
in dynsec__config_save(), ensuring correct matching of allocators and
eliminating the underflow bug.

Signed-off-by: Jesús Fernández Manzano <jesus.fernandez@titanos.tv>
2025-07-11 14:34:22 +01:00
Roger A. Light
89c52f9e6f Add CITATION.cff 2025-06-27 23:07:10 +01:00
Roger A. Light
2c671de72a Bump 1.6 docker to alpine 3.22 2025-05-31 16:09:37 +01:00
Roger A. Light
b99c89cfc9 Fix Websockets PING not being sent on Windows.
Closes #3272. Thanks to andrewthecat
2025-05-07 14:31:30 +01:00
Roger A. Light
2879012ef0 Windows: Add linker lib file for broker to the installer
Closes #3269. Thanks to u19809
2025-05-06 12:07:27 +01:00
Roger A. Light
04d471193b Fix calloc argument order 2025-05-02 22:38:30 +01:00
Roger A. Light
d4945d2159 Fix linker errors on some architectures using cmake.
Closes #3167. Thanks to acode-x
2025-05-01 16:26:35 +01:00
Roger A. Light
d0fd1985bd Fix TLS tests when running on a single CPU system
Affects 08-ssl-connect-cert-auth-expired and
08-ssl-connect-cert-auth-revoked

Closes #3230. Thanks to Joachim Zobel
2025-05-01 15:14:08 +01:00
Roger A. Light
8d1462cd0b Snapcraft: prime files on all architectures 2025-05-01 14:26:50 +01:00
Roger A. Light
ca8f00fab5 Fix compilation using WITH_OLD_KEEPALIVE
Closes #3250. Thanks to Stefan Bigler
2025-05-01 13:44:48 +01:00
Roger A. Light
a250ae59ef Fix incorrect "out of memory" reporting of client disconnections
Closes #3253. Thanks to Abilio Marques.
2025-05-01 13:24:06 +01:00
Roger A. Light
2cb8129793 Fix incorrect reference clock being selected on startup on Linux.
Closes #3238. Thanks to Eric Guin and karlri.
Closes #3168.
2025-05-01 11:59:17 +01:00
Roger A. Light
f781abcde9 Fix client library thread exiting on first connection refused error
Closes #3258. Thanks to acode-x
2025-05-01 11:52:46 +01:00
Roger A. Light
ed30f437f8 Fix C++ symbols being removed when compiled with link time optimisation.
Closes #3259. Thanks to Joachim Zobel.
2025-05-01 10:59:38 +01:00
Roger A. Light
0d8f163ea2 Fix crash on receiving a $CONTROL message over a bridge
This only occurs in the very limited circumstance if
per_listener_settings is set true and the bridge is carrying out topic
remapping.

Closes #3261. Thanks to Brodie Griggs.
2025-05-01 01:46:57 +01:00
Roger A. Light
d785b5ab5a Fix --version exit code and output.
Closes #3267. Thanks to Phil Coval
2025-05-01 01:08:25 +01:00
Roger A. Light
b96dacd78a Update broken favicon 2025-04-30 23:56:24 +01:00
Roger A. Light
bdee2ba32e Fix openssl linking on cmake.
Thanks to notpeelz.
2025-04-27 23:28:59 +01:00
Roger A. Light
1bfcc5bcbc Fix editorconfig for yaml 2025-04-20 21:04:01 +01:00
Roger A. Light
c1e754e5ec Docker: Remove unsupported images. Update to alpine 3.21 2025-04-20 12:01:47 +01:00
Abel T
7f590a0d14 Added ``WITH_TLS`` while checking for missing cafile, capath,certfile,keyfile
Should fix #3246
2025-04-15 22:50:01 +01:00
Roger A. Light
c6c6850d5c Whitespace tidy 2025-04-06 22:25:02 +01:00
Roger A. Light
f522dcaeed Remove unused service files 2025-04-04 12:34:07 +01:00
Roger A. Light
6ba7792a50 Add editorconfig file 2025-04-04 12:34:05 +01:00
Roger A. Light
fb6bb20bda Fix case where max_queued_messages = 0 was not treated as unlimited.
Closes #3244. Thanks to João Rodrigues
2025-03-25 09:56:40 +00:00
Roger A. Light
2acb9d5c8d Bridge: Fix idle_timeout never occurring for lazy bridges. 2025-03-19 11:56:43 +00:00
Roger A. Light
a61bfe122d Add details on client config files under snap
Closes #3236
2025-03-19 09:19:07 +00:00
Roger A. Light
13416a5186 Bump version 2025-03-12 11:41:21 +00:00
Roger A. Light
2c77db484b Windows: Fix broker crash on startup if using log_dest stdout 2025-03-12 10:33:03 +00:00
Roger A. Light
090cb8da86 Windows: ... and bump the installer version 2025-03-08 07:44:34 +00:00
Roger A. Light
3b91feb0e9 Windows: Add missing file to installers 2025-03-08 07:37:19 +00:00
Roger A. Light
4e1b872b48 Update test certs - seemingly broken due to merge 2025-03-08 06:51:58 +00:00
Roger A. Light
d5e2e89fe8 Harmonise test workflow run conditions and extend to master branch and tags 2025-03-08 06:51:05 +00:00
Roger A. Light
44fe135864 Bump docker 2025-03-06 16:26:36 +00:00