Roger A. Light
f5a09992be
Fix cpp include build
3 years ago
Roger A. Light
fd68bf00c7
Merge branch 'master' into develop
3 years ago
Roger A. Light
49ebb58569
Fix failure to close thread in some situations.
...
Closes #2545 . Thanks to p-luke.
3 years ago
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.
3 years ago
Roger A. Light
6468bb4f9b
Fix documentation omission around mosquitto_reinitialise.
...
Closes #2489 . Thanks to rroguski
3 years ago
Roger A. Light
e979a46c04
Backport SSL connect fixes.
...
Closes #2594 .
Closes #2595 .
3 years ago
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>
3 years ago
Kai Buschulte
8b67883548
Remove old compatibility header support
...
Signed-off-by: Kai Buschulte <kai.buschulte@cedalo.com>
3 years ago
Roger A. Light
a913de2d28
Fix some PUBLISH messages not being counted in $SYS stats.
...
Closes #2448 . Thanks to Antoine.
3 years ago
Roger A. Light
0c9d9f2163
Don't set SIGPIPE to ignore, use MSG_NOSIGNAL instead.
...
Closes #2564 . Thanks to nmeum.
3 years ago
Roger A. Light
4cfbb716be
Remove unused member
3 years ago
Roger Light
ac98c2135f
Merge pull request #2529 from NorbertHeusser/develop
...
Create github actions to trigger build and tests on devevlop branch
3 years ago
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
3 years ago
Roger A. Light
11b16756cb
Windows fixes.
3 years ago
Roger A. Light
25bc6f3cf4
Require topics>0 in mosquitto_[un]subscribe*().
3 years ago
Norbert Heusser
f424667fca
Merge branch 'develop' into NorbertHeusser:develop
3 years ago
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>
3 years ago
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>
3 years ago
Roger A. Light
436635fda8
Use absolute rather than relative paths when installing.
3 years ago
Roger Light
38295aeca3
Merge pull request #2559 from newAM/fix-mosquittopp-path
...
Fix install path to mosquittopp.h
3 years ago
Roger A. Light
546df9db85
Build fixes, particularly pedantic compiler warnings.
3 years ago
Alex Martens
bb33c503b6
Fix install path to mosquittopp.h
...
Signed-off-by: Alex Martens <eclipse@thinglab.org>
3 years ago
Roger A. Light
29f49bf6ab
Publish global out_packet values to $SYS
3 years ago
Roger A. Light
2e061afcc6
Fix build
3 years ago
Roger A. Light
4099f8d1b6
Store out_packet bytes rather than having to calculate it.
3 years ago
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 .
3 years ago
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.
3 years ago
Norbert Heusser
6fbf6fc5cb
Merge branch 'eclipse:develop' into develop
3 years ago
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>
3 years ago
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>
3 years ago
Roger A. Light
4f294a715b
Fix WS reads when fragmented packets are sent.
3 years ago
Roger A. Light
75be1ed643
Improve uint16/32 packet read/write performance.
4 years ago
Roger A. Light
efc8d064de
Bring mosquittopp more up to date with libmosquitto.
4 years ago
Roger A. Light
5fcb2bc13f
Simplify use of headers.
4 years ago
Roger A. Light
4c72542eae
Move mosquittopp header to include dir.
4 years ago
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>
4 years ago
Roger A. Light
c53a53bce0
Re-enable LTO for gcc builds.
4 years ago
Roger A. Light
9f9813aff4
Fix Coverity Scan 1486949 Resource leak
4 years ago
Roger A. Light
15cd25c3e9
Fix Coverity Scan 1486949 Resource leak
4 years ago
Roger A. Light
a4635682d1
Fix Coverity Scan 1486945 String not null terminated
4 years ago
Roger A. Light
cac537830e
Fix Coverity Scan 1486949 Resource leak
4 years ago
Roger A. Light
0549a6a9aa
Fix Coverity Scan 1486957 Resource leak
4 years ago
Roger A. Light
1d805316ba
Fix Coverity Scan 1486949 Resource leak
4 years ago
Roger A. Light
fa0b532e69
Fix Coverity Scan 1486948 Structurally dead code
4 years ago
Roger A. Light
a94eb99c97
Fix Coverity Scan 1486945 String not null terminated
4 years ago
Roger A. Light
1771dd9941
Fix Coverity Scan 1436854 Resource leak
4 years ago
Roger A. Light
c985736866
Restrict persistence events to persisted clients only.
4 years ago
Roger A. Light
39f3030643
Fix client_generated flag not being copied on properties.
...
Closes #2401 . Thanks to Diorcet Yann.
4 years ago
Roger A. Light
96931643a4
Use strings.h for strcasecmp, except on Windows.
...
Closes #2420 . Thanks to Frédéric Fauberteau.
4 years ago
Roger A. Light
2afe19466a
Remove unused macro.
4 years ago