1994 Commits

Author SHA1 Message Date
Roger A. Light
b3b4d77ef3 cmake: Disable http-api tests if library not available. 2026-02-25 11:40:50 +00:00
Yann E. MORIN
8c3bc32689 broker: properly check for getaddrinfo_a()
getaddrinfo_a( is protected by _GNU_SOURCE.

This is properly accounted for in the source code, in lib/net_mosq.c,
but the check in the CmakeList is missing that define, which causes
the check to actually fail.

Add that define when checking; this fixes builds on various C libraries,
like uClibc-ng, musl, or newer/older glibc.

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
2026-02-24 09:38:49 +00:00
Roger A. Light
f5dd5d8519 Fix unix sockets support on Windows
Closes #3511. Thanks to lt-havoc.
2026-02-23 23:16:43 +00:00
Roger A. Light
b21c9f2c9a Fix incorrect parsing of unix socket address in proxy v2 2026-02-18 09:05:44 +00:00
Roger A. Light
d0152406e3 Fix will messages being incorrectly delayed.
This occured if a client set session-expiry-interval=0 when using
will-delay-interval>0.

Closes #3505. Thanks to Julian Graf.
2026-02-16 11:37:36 +00:00
Roger A. Light
0c16558320 cmake: Fix linker errors on AIX.
Thanks to Andreas Kempf.
2026-02-13 13:15:03 +00:00
Roger A. Light
d2435fc685 cmake: Simplify WITH_BUNDLED_DEPS handling 2026-02-13 13:14:50 +00:00
Roger A. Light
43c2715042 Fix password length not being passed to MOSQ_EVT_BASIC_AUTH events.
Closes #3490. Thanks to thehouseisonfire.
2026-02-13 13:14:38 +00:00
Jan Palus
33d14397c4 Fix build with USE_LIBWRAP
Signed-off-by: Jan Palus <jpalus@fastmail.com>
2026-02-13 12:21:12 +00:00
Roger A. Light
189e370313 Fix missing unix sockets support on Windows 2026-02-11 23:45:25 +00:00
Roger A. Light
5f2a45d96a Fix MOSQ_EVT_DISCONNECT being called before MOSQ_EVT_ACL_CHECK
This occurs for the will of that client.

Closes #3487. Thanks to ChrisBFX.
2026-02-11 14:43:57 +00:00
Roger A. Light
20d9578077 Fix cmake linking of libwebsockets static/shared 2026-02-09 09:24:43 +00:00
Roger A. Light
fbe9470657 kqueue: Fix EV_EOF support 2026-02-08 21:56:19 +00:00
Roger A. Light
a7f3f4c362 Forbid running with persistence true and a plugin at the same time. 2026-02-07 23:25:24 +00:00
Roger A. Light
efb09624c5 kqueue: Fix libwebsockets event generation 2026-02-07 23:25:24 +00:00
Roger A. Light
0491e6bf37 kqueue: Support EV_EOF and EV_ERROR 2026-02-07 23:25:24 +00:00
Roger A. Light
51a31bae08 kqueue: Remove unneeded memset 2026-02-07 23:25:24 +00:00
Roger A. Light
99bd814669 kqueue: Fix timeout calculation 2026-02-07 23:25:15 +00:00
Roger A. Light
9b3dc05706 Only decrement client_count once for WS clients
This was incorrectly added in the fix for #3455.

Closes #3475. Thanks to Manuel Janocha
2026-02-06 15:16:22 +00:00
Roger A. Light
0a64c1de23 OpenBSD build fixes
Closes #3474. Thanks to Stuart Henderson
2026-02-06 14:50:20 +00:00
Roger A. Light
15a163eb09 Don't enforce receive-maximum on the broker 2026-02-04 21:37:51 +00:00
Roger A. Light
578d30e90f Fix max_connections not being honoured on libwebsockets listeners.
Closes #3455. Thanks to FelixPopp.
2026-02-03 23:54:11 +00:00
Roger A. Light
df7b703080 Fix $SYS load values not being published initially.
Closes #3459. Thanks to hessijames79
2026-02-03 09:28:18 +00:00
Roger A. Light
695df7719d Fix building with WITH_TLS=no
Closes #3469. Thanks to iTitou.
2026-02-03 09:23:27 +00:00
Roger A. Light
a1dcebd273 Fix plugin/global_plugin option not allowing space characters. 2026-02-03 00:19:59 +00:00
Roger A. Light
6711465b24 Fix missing log error when loading missing plugin path 2026-02-03 00:19:59 +00:00
Roger A. Light
3c45da8d7e Fix inconsistent client disconnect log format 2026-02-03 00:19:59 +00:00
Roger A. Light
750c0f44d8 Fix address and port missing from disconnect messages 2026-02-02 23:50:42 +00:00
Roger A. Light
16f41e61fc Add MOSQUITTO_UNSAFE_ALLOW_SYMLINKS env var
Setting this environment variable allows sensitive files to be read
through symlinks.

Closes #3461. Thanks to Jeff Cutsinger
2026-02-02 16:33:37 +00:00
Roger A. Light
c2c5ed9853 Fix PUID/PGID checking for docker 2026-01-30 09:41:31 +00:00
Roger A. Light
233999cc0a Fix callback handling when using plugin_load. 2026-01-29 14:10:10 +00:00
Roger A. Light
9ccdf203ab Remove logging printf 2026-01-28 21:02:40 +00:00
Roger A. Light
ebd3f228e0 Re-enable support for TLS 1.1 in the broker but not by default
Log a scary message if used.
2026-01-28 00:40:24 +00:00
Roger A. Light
06ec09cd19 Fix use after free when restoring retained message from sqlite 2026-01-27 17:10:39 +00:00
Roger A. Light
b4fa181321 Remove whitespace 2026-01-23 09:28:53 +00:00
Roger A. Light
0d89a649c2 More warning fixes 2026-01-23 09:26:09 +00:00
Roger A. Light
7de6cb42ef Compiler warning fixes 2026-01-23 08:44:34 +00:00
Roger A. Light
3e0f79bd89 Add missing errno.h for kqueue. 2026-01-21 22:42:47 +00:00
Roger A. Light
758bf6a127 Minor compiler warning fixes 2026-01-21 16:58:42 +00:00
Roger A. Light
fa07bb9722 Don't shadow variable 2026-01-21 15:49:15 +00:00
Roger A. Light
61794d79bc String literal should be const 2026-01-21 15:48:34 +00:00
Roger A. Light
61e1981d6f Remove duplicate declaration 2026-01-21 15:48:11 +00:00
Roger A. Light
d346179137 Formatting 2026-01-18 22:45:10 +00:00
Roger A. Light
81a9385877 Merge branch 'fixes' into develop 2026-01-15 00:49:53 +00:00
Roger A. Light
3ab1bae406 Merge branch 'fixes' 2026-01-14 19:10:52 +00:00
Roger A. Light
ab052294f7 Prevent certificates and TLS-PSK on the same listener
Prior to this change, configuring TLS-PSK first then certificates was
not allowed. This also denies the case where certificates are configured
first.
2026-01-14 19:09:59 +00:00
Roger A. Light
06a13830df Fix leak when loading certificate names 2026-01-14 11:41:11 +00:00
Roger A. Light
9f576d2a71 Set max_packet_size to 2,000,000 bytes by default 2026-01-13 12:15:46 +00:00
Roger A. Light
8ad81a9917 MOSQ_EVT_ACL_CHECK event is now passed message properties where possible.
Closes #3176.
2026-01-12 23:51:02 +00:00
Roger A. Light
dd57e98c6b Limit auto_id_prefix to 50 characters
Back port from develop.

Closes #3440. Thanks to Lukas Dresel
2026-01-12 22:15:52 +00:00