Norbert Heusser
306b76d7f6
Create github build action to build Mosquitto and added timeout
...
to python tests waiting for subprocess to avoid github actione being blocked
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Abilio Marques
102c275764
broker: add command line argument to test configuration and exit
...
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Roger A. Light
5731dd8653
Add mosquitto_persistence_location() for plugins.
3 years ago
Roger A. Light
1da29c9e51
Fix `-f` and `-s` options in mosquitto_rr.
3 years ago
Roger Light
82dff0f32d
Merge pull request #2510 from csalve/fix-missing-mutex-for-next_msg_out
...
fix data race mosquitto_loop function
3 years ago
Roger A. Light
0745a8536a
Update changelog.
...
Fix mosquitto_pub incorrectly reusing topic aliases when reconnecting.
Closes #2494 .
3 years ago
Roger Light
d0d8f1a83d
Merge pull request #2513 from Daedaluz/fixes
...
Don't reuse topic alias after reconnect.
3 years ago
Roger A. Light
ab1803d72f
Fix casting.
3 years ago
Roger A. Light
7f273e41d0
Merge branch 'abiliojr-sqlite_flush_page_options' into develop
3 years ago
Roger A. Light
5d483689bc
Merge branch 'sqlite_flush_page_options' of https://github.com/abiliojr/mosquitto into abiliojr-sqlite_flush_page_options
3 years ago
Roger A. Light
a84b5abb69
Update changelog and sort documentation order.
3 years ago
Roger A. Light
1ed8020057
Merge branch 'mlyszczek-add-float-format' into develop
3 years ago
Roger A. Light
cff5a831f8
Merge branch 'add-float-format' of https://github.com/mlyszczek/mosquitto into mlyszczek-add-float-format
3 years ago
Roger A. Light
4fd51e9681
Fix incorrect earlier commit
3 years ago
Abilio Marques
82b6eaa31d
Persist-sqlite: add flush_period and page_size options
...
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
3 years ago
Roger A. Light
4f294a715b
Fix WS reads when fragmented packets are sent.
3 years ago
Michał Łyszczek
91bca8899c
mosquitto_sub: add support to print floats
...
This patch adds support for two new format specifiers (%f and %d)
to print float and double data.
Generally it's not save to directly take native binary data of one machine and
print it on another one (since mosquitto is multiarch). But in case of floats
it's save to print representation of it, if __STDC_IEC_559__ is defined.
In C99 Annex F, standard we can read:
> This annex specifies C language support for the
> IEC 60559 floating-point standard.
> (...)
> An implementation that defines __STDC_IEC_559__
> shall conform to the specifications in this annex
All float printing code is behind __STDC_IEC_559__, so if that is not
defined, floating print will be disabled and error returned to user.
Documentation also describes restrictions about printing floats.
Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
3 years ago
Tobias Assarsson
a9a5ac2283
Don't reuse topic alias after reconnect.
4 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
Roger A. Light
af40a91fb1
Fix possible incorrect free of persist base msgs.
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
09c296c175
Remove dead link.
4 years ago
Roger Light
b39526a998
Merge pull request #2485 from abiliojr/fix_default_bridge_backoff
...
fix default bridge backoff periods (scale seconds to milliseconds)
4 years ago
Roger Light
4be56239e9
Merge pull request #2477 from natcl/patch-1
...
Fix typo (missing word)
4 years ago
Roger Light
3cdeb595ff
Merge pull request #2504 from Hallot/fix/cmake-mosquitto-as-submodule
...
CMake: Use PROJECT_SOURCE_DIR to improve using mosquitto as subdirectory
4 years ago
Roger Light
37b44cfe8e
Merge pull request #2505 from NorbertHeusser/develop
...
Fixed CMakeLists.txt files
4 years ago
Norbert Heusser
d4216c8cb6
Fixed CMakeLists.txt
...
* Addded missing files plugin_subscribe and plugin_unsubscribe to src/CMakeLists.txt
* Aligned mixed usage of all-keyword and all-plain in target_link_libra…ry definition in in CMakeLists.txt
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
4 years ago
Pierre Hallot
8504f6b70b
CMake: Use PROJECT_SOURCE_DIR to improve using mosquitto as subdirectory
...
When mosquitto is included as subdirectory, `CMAKE_SOURCE_DIR` does not refer to the mosquitto top level CMake file, but to the whole project top level CMake.
Use `PROJECT_SOURCE_DIR` instead to refer to the right CMake in both contextes.
Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
4 years ago
Roger A. Light
b922c13509
Compile broker against pthreads if threading enabled.
...
This allows plugins to *carefully* use threads.
4 years ago
Roger A. Light
8a9d8ece37
Fix sqlite test
4 years ago
Roger A. Light
40d8015837
Add MOSQ_EVT_SUBSCRIBE and MOSQ_EVT_UNSUBSCRIBE events.
...
These are called when subscribe/unsubscribes actually succeed.
4 years ago
Roger A. Light
fc4a59b288
Fix persist writing
4 years ago
Roger A. Light
cd6356f14b
Fix config.mk relative paths.
4 years ago
Roger A. Light
c53a53bce0
Re-enable LTO for gcc builds.
4 years ago
Roger A. Light
af42640d60
Dynsec: Allow initial password generation from environment variable.
4 years ago
Roger A. Light
7552e944a8
Long overdue bump of in-development version number.
4 years ago
Roger A. Light
9f9813aff4
Fix Coverity Scan 1486949 Resource leak
4 years ago
Roger A. Light
b4f2000109
Remove replaced line.
4 years ago
Roger A. Light
15cd25c3e9
Fix Coverity Scan 1486949 Resource leak
4 years ago
Roger A. Light
984d1bb526
Fix Coverity Scan 1486959 Resource leak
4 years ago
Roger A. Light
e7f22db4e1
Comments
4 years ago
Roger A. Light
a4635682d1
Fix Coverity Scan 1486945 String not null terminated
4 years ago
Roger A. Light
016e03c285
Fix Coverity Scan 1486961 Resource leak
4 years ago
Roger A. Light
a331057127
Fix Coverity Scan 1486950 Unchecked return value from library
4 years ago
Roger A. Light
5ab7603811
Fix Coverity Scan 1486934 Unchecked return value
4 years ago
Roger A. Light
8720b4e754
Fix Coverity Scan false positive 1486951 String not null terminated
4 years ago
Roger A. Light
85cbe1cea6
Fix Coverity Scan 1486959 Resource leak
4 years ago