Roger A. Light
1d17ced449
Broker configurable max_packet_size
...
Plus tests.
7 years ago
Roger A. Light
8fb4ad48b5
Strings for new error codes.
7 years ago
Roger A. Light
b9b8e0ff2a
Add client support for outgoing maximum packet size.
7 years ago
Roger A. Light
1877f8a326
Tests and implementation for maximum packet size.
...
This is for broker outgoing connack and publish packets only.
7 years ago
Roger A. Light
66c1e2ccf0
Add mosquitto_unsubscribe_multiple(), plus tests.
7 years ago
Roger A. Light
458a9840ad
Bump version for test release.
7 years ago
Roger A. Light
084062c85e
Merge branch 'fixes' into mqtt5
7 years ago
Roger A. Light
b6dc4e5780
Fix datatype_read test.
7 years ago
Roger A. Light
bb914b985c
Fix `mosquitto_topic_matches_sub()` rc with sub=="topic/#abc".
...
This now returns MOSQ_ERR_INVAL as expected.
7 years ago
Roger A. Light
e72d1d6ff5
Fix `mosquitto_topic_matches_sub()` rc with sub=="topic/#abc".
...
This now returns MOSQ_ERR_INVAL as expected.
7 years ago
Roger A. Light
1b5c900e77
Update CVE details and bump version number.
7 years ago
Roger A. Light
7ff9c3763b
Fix socks build when using cmake.
7 years ago
Roger A. Light
f952ae3a67
Fixed durable clients being unable to receive messages when offline.
...
This occurred when per_listener_settings was set to true.
Closes #1081 . Thanks to dwin-wangjt.
7 years ago
Roger A. Light
d6a690aa8d
Fix Will not being sent for Websockets clients.
...
Closes #1143 . Thanks to salcedo.
7 years ago
Roger A. Light
ab8b57ff54
Allow broker to always restart on Windows when using `log_dest file`.
...
Closes #1080 . Thanks to lcouz.
7 years ago
Roger Light
5236295159
Handle mismatched handshakes properly.
...
For example, a QoS1 PUBLISH with QoS2 reply.
7 years ago
Matthias Stone
4325c44baf
Don't clear SSL context when TLS connection is closed.
...
Previous behaviour would clear the external SSL_CTX provided by
MOSQ_OPT_SSL_CTX. This required the user to reset the SSL_CTX every
disconnect, and trust that they were not leaking references.
Recreating the SSL context for every connection is not necessary, and the
SSL context is freed in mosquitto_destroy, which is sufficient.
Signed-off-by: Matthias Stone <matthias@bellstone.ca>
7 years ago
Roger A. Light
e8320cbf19
Fix TLS connections not working over SOCKS.
...
Thanks to Mark Oeltjenbruns.
7 years ago
Roger A. Light
be9c1071b0
Fix compilation when openssl deprecated APIs are not available.
...
Closes #1094 . Thanks to Rosen Penev.
7 years ago
Roger A. Light
70c4097b6f
Fix comparison of boolean values in CMake build.
...
Closes #1101 . Thanks to Mojca Miklavec and Andrew L. Moore.
7 years ago
Maksym Ruchko
f6943b006a
Fixed threaded enum lost in merges
...
Change was part of the original commit e8185ddaa7
"[166] Don't cancel external threads."
and then lost during code reorganizing and subsequent merge,
commits 970ba58da6
81cb7ab547
Signed-off-by: Maksym Ruchko <mruchko@advantech-bb.com>
7 years ago
Roger A. Light
e1976739b8
Fix duplicate error values.
...
Closes #1109 . Thanks to Tifaifai.
7 years ago
Roger A. Light
ca3782b38d
Test and fixes for will message expiry interval.
7 years ago
Roger A. Light
6a59e92db8
Set remaining message expiry interval when republishing.
7 years ago
Roger A. Light
f9a17e2782
Add alias support to the broker.
7 years ago
Roger Light
8513af4da5
Tests and fixes for shortened DISCONNECT packets.
7 years ago
Roger Light
4b97a90ef9
Tests and fixes for truncated PUB* packets
...
For the cases where reason_code is 0, or properties are missing.
7 years ago
Roger A. Light
326292681a
Add maximum-qos support to broker and client.
...
This comes in the form of:
* Per listener maximum_qos option, which can be in the range 0-2.
* Changes to mosquitto_publish*() to return MOSQ_ERR_QOS_NOT_SUPPORTED
if attempting to publish with a higher QoS than supported.
* Bridges will downgrade messages to match the maximum QoS.
More tests on the broker side (specifically bridges) are required. This
needs bridge support for MQTT 5 first.
7 years ago
Roger Light
930a314caf
Add reason_code to on_publish_v5 callback.
7 years ago
Roger Light
740a128769
Support PUBREC reason code >=0x80 as partial qos2 flow.
7 years ago
Roger A. Light
aeba5b5d0d
Fix and tests for client side receive-maximum.
7 years ago
Roger Light
84660e1cbe
Send maximum limits for QoS>0.
...
This needs more work on the broker front to simplify the design.
7 years ago
Roger Light
67c1d4453e
Receive maximum support for clients.
7 years ago
Roger Light
0546e7bebc
Add mosquitto_int_option and mosquitto_void_option
...
This deprecates mosquitto_opts_set().
7 years ago
Roger A. Light
16e83bfe5d
Process receive maximum (as max_inflight_messages).
7 years ago
Roger A. Light
659cd2a3b1
Read reason code for PUBREC/PUBREL.
7 years ago
Roger A. Light
7c3666d593
Subscription identifier support.
7 years ago
Roger A. Light
fcf4cd0b27
Merge branch 'master' into mqtt5
7 years ago
Roger A. Light
94fdc9cb44
Disallow UTF-8 control characters.
7 years ago
Roger A. Light
bc1349c0d7
Tests for user facing mosquitto_string_to_property_info function.
7 years ago
Roger A. Light
db7901884f
Retain-as-published support.
7 years ago
Roger A. Light
4933f889ff
Fix missing header.
7 years ago
Roger A. Light
a8ca5c83af
Bump version.
7 years ago
Roger A. Light
afe011866c
Remove unused variables.
7 years ago
Roger A. Light
a00dd29af8
Fix building where TLS-PSK is not available.
...
Closes #68 .
7 years ago
Roger A. Light
f90ba23738
Retain handling support.
7 years ago
Roger A. Light
4fe75b1af0
Make user functions for reading properties easier to use.
7 years ago
Roger A. Light
73c46174f8
Don't call on_disconnect() twice if keepalive tests fail.
...
Closes #1067 . Thanks to xingchen02.
Bug: https://github.com/eclipse/mosquitto/issues/1067
7 years ago
Roger A. Light
6ef2c79e9a
Add max_keepalive, for limiting keepalives of MQTT v5 clients.
7 years ago
Roger A. Light
29846d282d
Client library now reads its assigned client id.
7 years ago