226 Commits

Author SHA1 Message Date
Roger A. Light
758bf6a127 Minor compiler warning fixes 2026-01-21 16:58:42 +00:00
Roger A. Light
81a9385877 Merge branch 'fixes' into develop 2026-01-15 00:49:53 +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
6fb01c7337 Add broker logging for protocol errors 2025-11-26 14:34:10 +00:00
Roger A. Light
7ea73f6d60 Formatting: Forbid single line if statements
These hide cases from coverage checks
2025-09-17 12:48:02 +01:00
Roger A. Light
48b76e49f8 Formatting: Misc automatic formatting changes 2025-09-17 12:03:06 +01:00
Roger A. Light
883fdb2ad2 Formatting: Double indent continuation 2025-09-17 12:03:06 +01:00
Roger A. Light
d743413ac3 Formatting: Spacing consistency 2025-09-17 12:03:06 +01:00
Roger A. Light
67ad22df0a Formatting: Double space before functions. 2025-09-17 12:03:03 +01:00
Norbert Heusser
bb094ca281 Fixed outgoing client message state from persistence plugin API
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-08-07 23:01:38 +01:00
Roger A. Light
3d0e96be85 Merge branch 'master' into develop 2025-07-29 16:07:57 +01:00
Norbert Heusser
f7a00aa19c Removed compiler warnings
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2025-07-10 00:52:33 +01:00
Roger A. Light
3511db6889 Whitespace tidy 2025-04-06 22:40:48 +01:00
Roger A. Light
f8d37b70a6 Merge branch 'fix-persist-plugin-expiry' of github.com:NorbertHeusser/mosquitto into NorbertHeusser-fix-persist-plugin-expiry 2025-02-26 09:59:32 +00:00
Simon B. Gasse
7f50849875 Remove unused variables in database.c 2025-02-25 18:49:00 +00:00
Roger A. Light
aa89eb3575 Minor sub tree refactor 2025-02-03 10:01:45 +00:00
Roger A. Light
dd2c25c1cf Merge branch 'master' into develop 2024-10-19 22:13:14 +01:00
Roger A. Light
7399ac67d1 Don't call memcpy with NULL destination, even with size=0 2024-10-02 10:25:33 +01:00
Roger A. Light
1914b3ee2a Use separate trees for shared/normal subs
Fixes Eclipse #217, #218.
2024-10-02 10:25:31 +01:00
Roger A. Light
27ce1524e7 Better message expiry fix. 2024-03-18 15:29:40 +00:00
Roger A. Light
b5c25cf1d0 Refactor memory functions to common static library. 2024-03-17 10:30:07 +00:00
Roger A. Light
a6344f833b Refactor time functions to common static library. 2024-03-17 07:58:45 +00:00
Norbert Heusser
fa6bb8b458 Fixed deletion of expired retain msg after restore from persistent plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-03-12 07:54:28 +00:00
Norbert Heusser
5c4505498e Fixed handling of expired messages after restore from persistent plugin
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-03-12 07:54:13 +00:00
Roger A. Light
2c7084b16d Expire restored expired messages immediately. 2024-03-05 14:33:48 +00:00
Roger A. Light
01230a3c2a C99 loops 2024-02-29 21:54:38 +00:00
Norbert Heusser
cbf2c68657 Fixed client message counters and remove of client messages from
persistent plugin store, if messages removed due to ACL change

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-02-15 22:43:28 +00:00
Norbert Heusser
3656b991d5 Refactoring persist-sqlite plugin and moved functionality from
handle_connect.c into database.c

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-02-15 22:43:28 +00:00
Norbert Heusser
d14d6bdfc8 Refactoring in database.c
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
2024-02-15 22:43:28 +00:00
Roger A. Light
e656e694ed Merge branch 'master' into develop 2023-09-09 15:20:40 +01:00
Roger A. Light
6113eac95a Fix for CVE-2023-28366 2023-08-16 14:01:21 +01:00
Roger A. Light
1787d9b1a7 Fix potential db id collision. 2023-04-20 16:39:20 +01:00
Roger A. Light
a791532c12 Simplify $SYS metric generation. 2023-03-10 23:48:47 +00:00
Roger A. Light
9738406414 Fix db id generation in case of clock discontinuity.
Thanks to Rebecca Gellman.
2023-01-31 22:30:17 +00:00
Roger A. Light
5364410615 Rename members 2023-01-16 10:21:12 +00:00
Roger A. Light
7013a3502d Refactor client_msg structs 2023-01-16 10:21:12 +00:00
Roger A. Light
331e802913 Rename mosquitto_client_msg -> mosquitto__client_msg 2023-01-16 10:21:12 +00:00
Roger A. Light
86ec8c6169 Factor out unneeded argument 2023-01-16 10:21:12 +00:00
Roger A. Light
6f39425946 Only calculate hash value once. 2023-01-16 10:21:12 +00:00
Roger A. Light
100fd31530 Refactor base_msg structs. 2023-01-16 10:21:12 +00:00
Roger A. Light
2e36d523c8 Rename mosquitto_base_msg -> mosquitto__base_msg 2022-12-22 16:04:03 +00:00
Kai Buschulte
e6f5633ff6 Fix some compiler warnings
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
2022-11-03 10:55:37 +01:00
Roger A. Light
16feb14a57 Persistence interface updates and sqlite plugin fixes
The MOSQ_EVT_PERSIST_CLIENT_MSG_CLEAR event has been removed, due to
never being called. It is the responsibility of the plugin to remove
client subscriptions and client messages when the client is removed.

Lots of persist test improvements and additions - mostly checking item
counts.
2022-10-09 22:17:47 +01:00
Roger A. Light
fd68bf00c7 Merge branch 'master' into develop 2022-08-17 16:18:24 +01:00
Roger A. Light
7917553eb2 Fix expired messages causing queued messages not to be delivered.
Closes #2609. Thanks to JSchy65.
2022-08-16 12:29:18 +01:00
Roger A. Light
cd88906132 Clearer function name 2022-08-16 12:28:13 +01:00
Roger A. Light
a146c218ad Fix unlimited message quota not being properly checked.
This is for incoming messages.

Closes #2593. Thanks to dongguoqing2015.
2022-08-06 22:49:08 +01:00
Roger A. Light
c170d764fd Reduce memory allocations in sub and retain trees. 2022-08-05 13:09:19 +01:00
Roger A. Light
e70fd299f8 Fix from windows changes 2022-07-24 22:38:24 +01:00
Roger A. Light
11b16756cb Windows fixes. 2022-07-21 15:51:52 +01:00