Roger A. Light
27941ae9c2
Fix Coverity Scan 1499830
2022-10-16 14:48:26 +01:00
Kai Buschulte
c646172c05
set mqtt v5 callbacks in C++ wrapper of lib
...
This caused "unused function" warnings
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com >
2022-08-29 11:21:50 +00:00
Roger A. Light
f5a09992be
Fix cpp include build
2022-08-17 19:52:30 +01:00
Roger A. Light
fd68bf00c7
Merge branch 'master' into develop
2022-08-17 16:18:24 +01:00
Roger A. Light
49ebb58569
Fix failure to close thread in some situations.
...
Closes #2545 . Thanks to p-luke.
2022-08-15 22:17:00 +01:00
Roger A. Light
02b92b97ef
Fix use of MOSQ_OPT_SSL_CTX when used with MOSQ_OPT_SSL_CTX_DEFAULTS
...
Closes #2463 . Thanks to Tim Nordell.
2022-08-10 17:18:33 +01:00
Roger A. Light
6468bb4f9b
Fix documentation omission around mosquitto_reinitialise.
...
Closes #2489 . Thanks to rroguski
2022-08-10 14:31:34 +01:00
Roger A. Light
e979a46c04
Backport SSL connect fixes.
...
Closes #2594 .
Closes #2595 .
2022-08-09 21:25:54 +01:00
Kai Buschulte
ddd16d54be
Make required includes public for libmosquitto
...
for simplified usage of the CMake target
Issue number: #2452
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com >
2022-08-08 12:24:15 +02:00
Kai Buschulte
8b67883548
Remove old compatibility header support
...
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com >
2022-08-08 09:25:16 +00:00
Roger A. Light
a913de2d28
Fix some PUBLISH messages not being counted in $SYS stats.
...
Closes #2448 . Thanks to Antoine.
2022-08-08 00:29:37 +01:00
Roger A. Light
0c9d9f2163
Don't set SIGPIPE to ignore, use MSG_NOSIGNAL instead.
...
Closes #2564 . Thanks to nmeum.
2022-08-07 23:04:46 +01:00
Roger A. Light
4cfbb716be
Remove unused member
2022-08-05 21:53:17 +01:00
Roger Light
ac98c2135f
Merge pull request #2529 from NorbertHeusser/develop
...
Create github actions to trigger build and tests on devevlop branch
2022-08-03 10:10:57 +01:00
Roger A. Light
ca61baf5e3
Merge branch 'add-common-options-target-to-enable-compiler-warnings' of https://github.com/buschulte/mosquitto into buschulte-add-common-options-target-to-enable-compiler-warnings
2022-07-21 16:21:29 +01:00
Roger A. Light
11b16756cb
Windows fixes.
2022-07-21 15:51:52 +01:00
Roger A. Light
25bc6f3cf4
Require topics>0 in mosquitto_[un]subscribe*().
2022-07-20 16:55:26 +01:00
Norbert Heusser
f424667fca
Merge branch 'develop' into NorbertHeusser:develop
2022-07-08 09:30:53 +00:00
Kai Buschulte
71456077ad
Introduce a common-options cmake target
...
this makes it possible to explicitly share compile options, without
using the `add_definition` function. This function declares options for
the current directory and below (in our case also for `deps`).
Adding -Wall, -Wconversion and -Wextra to at least make compiler
warnings visible for the cmake build.
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com >
2022-07-04 11:16:01 +02:00
Kai Buschulte
36935a3384
Use OpenSSL:SSL cmake target
...
Instead of using the CMAKE_OPENSSL_INCLUDE and CMAKE_OPENSSL_LIBRARY
variables the imported target OpenSSL::SSL is used.
This is a more modern way of target linking.
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com >
2022-06-22 23:56:09 +01:00
Roger A. Light
436635fda8
Use absolute rather than relative paths when installing.
2022-06-22 22:43:39 +01:00
Roger Light
38295aeca3
Merge pull request #2559 from newAM/fix-mosquittopp-path
...
Fix install path to mosquittopp.h
2022-06-22 22:26:09 +01:00
Roger A. Light
546df9db85
Build fixes, particularly pedantic compiler warnings.
2022-06-14 22:29:05 +01:00
Alex Martens
bb33c503b6
Fix install path to mosquittopp.h
...
Signed-off-by: Alex Martens <eclipse@thinglab.org >
2022-06-05 15:39:48 -07:00
Roger A. Light
29f49bf6ab
Publish global out_packet values to $SYS
2022-06-04 22:40:48 +01:00
Roger A. Light
2e061afcc6
Fix build
2022-06-03 20:49:59 +01:00
Roger A. Light
4099f8d1b6
Store out_packet bytes rather than having to calculate it.
2022-06-02 23:02:17 +01:00
Roger A. Light
ebfebf8708
Fix bridges not sending failure notification messages.
...
This is for messages to the local broker if the remote bridge connection
fails.
Closes #1488 .
Closes #2467 .
2022-05-25 16:23:35 +01:00
Roger A. Light
b6b8039914
Fix use of MOSQ_OPT_TLS_ENGINE being unable to be used.
...
This was due to the openssl ctx not being initialised until starting to connect.
Closes #2537 . Thanks to chessing-c4.
2022-05-17 17:19:17 +01:00
Norbert Heusser
6fbf6fc5cb
Merge branch 'eclipse:develop' into develop
2022-05-13 10:55:47 +02:00
Kai Buschulte
7e4746aac4
Fix missing symbols MacOS
...
Core symbols needed by plugins are now properly linked to their objects
* Remove link_directories() call:
This specification is not necessary for our own libraries as cmake
shares this information over the targets.
If needed they should be specified target specific, like done for
the external DLT library.
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com >
2022-05-11 07:01:22 +00:00
Norbert Heusser
6150ae6560
Remove mosquitto__set_state after error from send__connect in mosquitto__reconnect to
...
fix failing test test/lib/02-subscribe-qos1.py $@/02-subscribe-qos1-async2.test
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com >
2022-05-08 10:40:43 +00:00
Roger A. Light
4f294a715b
Fix WS reads when fragmented packets are sent.
2022-04-28 07:13:58 +01:00
Roger A. Light
75be1ed643
Improve uint16/32 packet read/write performance.
2022-04-18 08:41:51 +01:00
Roger A. Light
efc8d064de
Bring mosquittopp more up to date with libmosquitto.
2022-04-15 23:48:31 +01:00
Roger A. Light
5fcb2bc13f
Simplify use of headers.
2022-04-15 23:08:21 +01:00
Roger A. Light
4c72542eae
Move mosquittopp header to include dir.
2022-04-15 22:08:49 +01:00
Christian Salvasohn
4077987593
fix data race mosquitto_loop function
...
next_msg_out must be protected with the msgtime_mutex
as done everywhere else in the code else there is a data race
e.g. if mosquitto_publish is called from another thread
Signed-off-by: Christian Salvasohn <csalvasohn@gmx.de >
2022-04-13 20:05:35 +02:00
Roger A. Light
c53a53bce0
Re-enable LTO for gcc builds.
2022-03-25 22:33:08 +00:00
Roger A. Light
9f9813aff4
Fix Coverity Scan 1486949 Resource leak
2022-03-24 14:10:19 +00:00
Roger A. Light
15cd25c3e9
Fix Coverity Scan 1486949 Resource leak
2022-03-24 13:59:00 +00:00
Roger A. Light
a4635682d1
Fix Coverity Scan 1486945 String not null terminated
2022-03-24 12:01:36 +00:00
Roger A. Light
cac537830e
Fix Coverity Scan 1486949 Resource leak
2022-03-24 09:56:06 +00:00
Roger A. Light
0549a6a9aa
Fix Coverity Scan 1486957 Resource leak
2022-03-24 08:11:11 +00:00
Roger A. Light
1d805316ba
Fix Coverity Scan 1486949 Resource leak
2022-03-24 08:11:11 +00:00
Roger A. Light
fa0b532e69
Fix Coverity Scan 1486948 Structurally dead code
2022-03-24 08:11:11 +00:00
Roger A. Light
a94eb99c97
Fix Coverity Scan 1486945 String not null terminated
2022-03-24 08:11:11 +00:00
Roger A. Light
1771dd9941
Fix Coverity Scan 1436854 Resource leak
2022-03-24 08:11:11 +00:00
Roger A. Light
c985736866
Restrict persistence events to persisted clients only.
2022-03-01 16:24:54 +00:00
Roger A. Light
39f3030643
Fix client_generated flag not being copied on properties.
...
Closes #2401 . Thanks to Diorcet Yann.
2022-02-24 14:05:11 +00:00