Commit Graph

1081 Commits

Author SHA1 Message Date
Roger A. Light
40d8015837 Add MOSQ_EVT_SUBSCRIBE and MOSQ_EVT_UNSUBSCRIBE events.
These are called when subscribe/unsubscribes actually succeed.
2022-03-31 14:24:11 +01:00
Roger A. Light
5279a424b1 Dynsec: Kick clients in tick event rather than immediately
This means that PUBACK/PUBREC should be sent to clients that modify
their own roles.

Closes #2474. Thanks to Stefano Berlato.
2022-03-12 23:16:57 +00:00
Roger A. Light
6ccdda7261 Add bridge_tls_use_os_certs option.
This allows bridges to be easily configured to trust default CA
certificates.

Closes #2473. Thanks to Dustin Utecht.
2022-03-11 23:10:20 +00:00
Roger A. Light
0433b8ee9b Update changelog, fix usage of m_set_clientid(), add test. 2022-03-11 17:34:35 +00:00
Roger A. Light
d8028a16d6 Update changelog.
Closes #1509.
2022-02-24 19:18:25 +00:00
Roger A. Light
74814cc68f Simplify cmake threads detection on Windows
Requires cmake 3.1.
2022-02-24 19:04:29 +00:00
Roger A. Light
c93d53c278 Update changelog 2022-02-24 17:16:03 +00:00
Roger A. Light
1e9d00a1a1 Update changelog 2022-02-24 15:56:46 +00:00
Roger A. Light
14d1c32f9d Update changelog. Style, whitespace and, linker fixes. 2022-02-24 15:52:06 +00:00
Roger A. Light
497cbe0c6c Update changelog 2022-02-24 12:02:16 +00:00
Roger A. Light
78ee04cc27 Add mosquitto_client() for plugins, rearrange changelog. 2022-02-01 09:56:09 +00:00
Roger A. Light
ab67dbcacd More client tests, and an output format fix. 2022-01-15 23:41:12 +00:00
Roger A. Light
2501a64035 Merge branch 'master' into develop 2021-11-23 12:53:50 +00:00
Roger A. Light
2a056f14c2 Bump version number, update web. 2021-11-17 00:26:03 +00:00
Roger A. Light
94fcd470d0 Fix incorrect subscribe_callback in mosquittopp.h.
Closes #2367. Thanks to Jens Alfke.
2021-11-17 00:23:04 +00:00
Roger A. Light
11975332d4 Fix mosquitto_topic_matches_sub2() not using the length parameters.
Closes #2364. Thanks to Jens Alfke.
2021-11-16 23:14:24 +00:00
Roger Light
ff69dc8db2 Add bridge_receive_maximum option for MQTT v5.0 bridges. 2021-11-14 22:55:14 +00:00
Roger Light
99eddeb109 Add bridge_session_expiry_interval option for MQTT v5.0 bridges. 2021-11-14 22:01:10 +00:00
Roger A. Light
34b41a3b01 Dynsec: Add ability to deny wildcard subscriptions for a role 2021-11-10 11:20:25 +00:00
Roger A. Light
94d61305fa Fix bridge not respecting receive-maximum when reconnecting with MQTT v5. 2021-11-09 13:53:37 +00:00
Roger Light
538154bd9c The --insecure option now disables all server certificate verification. 2021-10-29 22:53:55 +01:00
Roger A. Light
8ac11929cc Merge branch 'master' into develop 2021-10-27 17:19:33 +01:00
Roger A. Light
292e969140 Bump version, update web. 2021-10-27 16:40:21 +01:00
Roger A. Light
46a6c5d17b Fix mosquitto_plugin.h not including mosquitto_broker.h.
Closes #2350. Thanks to Wolfgang Petroschka.
2021-10-27 16:23:20 +01:00
Roger A. Light
20d2935d81 Fix date format in mosquitto_sub output.
Closes #2353. Thanks to Norman Rasmussen.
2021-10-27 16:22:26 +01:00
Roger Light
65603da5e4 Add -W timeout support to Windows. 2021-10-20 11:48:26 +01:00
Roger A. Light
f0ed872786 Allow multiple service instances on Windows. 2021-10-13 14:39:52 +01:00
Roger Light
1cc8ebb782 Add support for sending the SIGRTMIN signal to trigger log rotation.
Closes #2337. Thanks to Evgeny S.
2021-10-13 00:05:52 +01:00
Roger Light
9d3f292b39 Send DISCONNECT With session-takeover return code.
This is for MQTT v5 clients when a client connects with the same client id.

Closes #2340. Thanks to hvxl.
2021-10-12 23:20:53 +01:00
Roger Light
5cae4d1d81 Fix broker sending duplicate CONNACK on failed MQTT v5 reauthentication.
Closes #2339. Thanks to hvxl.
2021-10-12 22:33:05 +01:00
Roger Light
51eda2bf79 Add more efficient keepalive check. 2021-10-12 17:19:42 +01:00
Roger A. Light
be80a3f4d0 Fix client id not showing in log on failed connections, where possible. 2021-10-06 10:09:38 +01:00
Roger A. Light
a1a190b482 Pointless whitespace tidy. 2021-10-05 15:20:37 +01:00
Roger A. Light
0ce167c472 Fix log file being truncated on Windows. 2021-10-05 11:33:35 +01:00
Roger A. Light
7061569bf4 Don't send retained messages when a shared subscription is made. 2021-10-04 16:26:58 +01:00
Roger A. Light
0992bafcc8 Add MOSQ_ERR_PLUGIN_IGNORE. 2021-10-01 14:33:11 +01:00
Roger A. Light
2bfc7e7cc8 Do plugin callback unregistering automatically. 2021-09-30 12:42:13 +01:00
Roger A. Light
0f2f77c945 Improve idle / mux timeout performance. 2021-09-29 16:07:48 +01:00
Roger Light
88dfac8e88 Windows threading support for the library. 2021-09-29 13:48:58 +01:00
Roger A. Light
9e28eea0a2 Initialise sockpairR/W to invalid in mosquitto_reinitialise()
This avoids closing invalid sockets in `mosquitto_destroy()` on error.

Closes #2326. Thanks to Arrigo Zanette.
2021-09-24 16:50:53 +01:00
Roger A. Light
7b58eee414 Fix problem parsing config files with Windows line endings.
Closes #2297. Thanks to all the people who commented there!
2021-09-23 11:40:40 +01:00
Roger A. Light
330bf6efdc Various fixes around inflight quota management.
Closes #2306. Thanks to canique.
2021-09-22 17:20:24 +01:00
Roger A. Light
7551a29985 Fix LWT messages not being delivered if per_listener_settings was set to true
Closes #2314. Thanks to Marc Hamel.
2021-09-21 22:51:25 +01:00
Roger A. Light
4f24ffef2f Add disable_client_cert_date_checks option. 2021-09-21 12:16:42 +01:00
Roger A. Light
ba936a869d Add accept_protocol_versions option. 2021-09-21 11:07:54 +01:00
Roger A. Light
f552ec48b1 Add global_max_connections option. 2021-09-17 16:06:02 +01:00
Roger A. Light
02685d49b6 Add global_max_clients option.
This allows limiting client sessions globally on the broker.
2021-09-17 16:01:37 +01:00
Roger A. Light
8acee6647c Add mosquitto_client_port() for plugins. 2021-09-15 15:18:41 +01:00
Roger A. Light
64e3c78306 Add enable_control_api option. 2021-09-13 10:31:25 +01:00
Roger A. Light
d942ed7eec Fix max_keepalive option not being able to be set to 0. 2021-09-09 12:19:13 +01:00